Merge branch 'entrypoint-disambiguation

This commit is contained in:
Sameer Naik
2017-02-14 16:36:58 +05:30
2 changed files with 20 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
FROM gcr.io/stacksmith-images/minideb:jessie-r8
FROM gcr.io/stacksmith-images/minideb:jessie-r9
MAINTAINER Bitnami <containers@bitnami.com>
@@ -20,6 +20,16 @@ RUN bitnami-pkg unpack prestashop-1.7.0.4-0 --checksum 037e8d534599eb28571ce467c
COPY rootfs /
ENV APACHE_HTTP_PORT="80" \
APACHE_HTTPS_PORT="443" \
PRESTASHOP_FIRST_NAME="Bitnami" \
PRESTASHOP_LAST_NAME="User" \
PRESTASHOP_PASSWORD="bitnami" \
PRESTASHOP_EMAIL="user@example.com" \
MARIADB_USER="root" \
MARIADB_HOST="mariadb" \
MARIADB_PORT="3306"
VOLUME ["/bitnami/prestashop", "/bitnami/apache", "/bitnami/php"]
EXPOSE 80 443

View File

@@ -1,35 +1,13 @@
#!/bin/bash
set -e
#!/bin/bash -e
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
function initialize {
# Package can be "installed" or "unpacked"
status=`nami inspect $1`
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
# Clean up inputs
inputs=""
if [[ -f /$1-inputs.json ]]; then
inputs=--inputs-file=/$1-inputs.json
fi
nami initialize $1 $inputs
fi
}
print_welcome_page
check_for_updates &
# Set default values
export APACHE_HTTP_PORT=${APACHE_HTTP_PORT:-"80"}
export APACHE_HTTPS_PORT=${APACHE_HTTPS_PORT:-"443"}
export PRESTASHOP_FIRST_NAME=${PRESTASHOP_FIRST_NAME:-"Bitnami"}
export PRESTASHOP_LAST_NAME=${PRESTASHOP_LAST_NAME:-"User"}
export PRESTASHOP_PASSWORD=${PRESTASHOP_PASSWORD:-"bitnami"}
export PRESTASHOP_EMAIL=${PRESTASHOP_EMAIL:-"user@example.com"}
export MARIADB_USER=${MARIADB_USER:-"root"}
export MARIADB_HOST=${MARIADB_HOST:-"mariadb"}
export MARIADB_PORT=${MARIADB_PORT:-"3306"}
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
for module in apache php prestashop; do
initialize $module
done
echo "Starting application ..."
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
nami_initialize apache php prestashop
info "Starting prestashop..."
fi
exec /entrypoint.sh "$@"
exec tini -- "$@"