removes nami start from Dockerfile CMD

This commit is contained in:
Sameer Naik
2017-03-13 12:14:40 +05:30
parent 63d62d828b
commit 6ea5ae4b22
9 changed files with 36 additions and 9 deletions

View File

@@ -22,4 +22,4 @@ EXPOSE 9000
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["nami", "start", "--foreground", "php"]
CMD ["/run-php-fpm.sh"]

View File

@@ -9,10 +9,9 @@ if [ -f composer.json ]; then
composer install
fi
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run-php-fpm.sh" ]]; then
nami_initialize php
chown -R :daemon /bitnami/php || true
info "Starting php-fpm..."
fi
exec tini -- "$@"

View File

@@ -0,0 +1,10 @@
#!/bin/bash
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
DAEMON=php-fpm
EXEC=$(which $DAEMON)
ARGS="-F"
info "Starting ${DAEMON}..."
exec ${EXEC} ${ARGS}

View File

@@ -22,4 +22,4 @@ EXPOSE 9000
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["nami", "start", "--foreground", "php"]
CMD ["/run-php-fpm.sh"]

View File

@@ -9,10 +9,9 @@ if [ -f composer.json ]; then
composer install
fi
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run-php-fpm.sh" ]]; then
nami_initialize php
chown -R :daemon /bitnami/php || true
info "Starting php-fpm..."
fi
exec tini -- "$@"

View File

@@ -0,0 +1,10 @@
#!/bin/bash
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
DAEMON=php-fpm
EXEC=$(which $DAEMON)
ARGS="-F"
info "Starting ${DAEMON}..."
exec ${EXEC} ${ARGS}

View File

@@ -22,4 +22,4 @@ EXPOSE 9000
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["nami", "start", "--foreground", "php"]
CMD ["/run-php-fpm.sh"]

View File

@@ -9,10 +9,9 @@ if [ -f composer.json ]; then
composer install
fi
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run-php-fpm.sh" ]]; then
nami_initialize php
chown -R :daemon /bitnami/php || true
info "Starting php-fpm..."
fi
exec tini -- "$@"

View File

@@ -0,0 +1,10 @@
#!/bin/bash
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
DAEMON=php-fpm
EXEC=$(which $DAEMON)
ARGS="-F"
info "Starting ${DAEMON}..."
exec ${EXEC} ${ARGS}