Rename MARIADB_PORT env var to MARIADB_PORT_NUMBER

This commit is contained in:
tompizmor
2017-06-01 12:30:42 +02:00
parent ab66afc736
commit f88f9a056d
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ FROM bitnami/minideb-extras:jessie-r13
MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_APP_NAME=codeigniter \
BITNAMI_IMAGE_VERSION=3.1.3-r4 \
BITNAMI_IMAGE_VERSION=3.1.3-r5 \
PATH=/opt/bitnami/php/bin:/opt/bitnami/mysql/bin/:$PATH
# System packages required
@@ -20,7 +20,7 @@ COPY rootfs /
ENV MARIADB_USER="root" \
MARIADB_HOST="mariadb" \
MARIADB_PORT="3306" \
MARIADB_PORT_NUMBER="3306" \
CODEIGNITER_PROJECT_NAME="myapp" \
TERM=xterm

View File

@@ -12,7 +12,7 @@ echo "Starting application ..."
if [ "$1" == "php" -a "$2" == "-S" ] ; then
if [ ! -d $PROJECT_DIRECTORY ] ; then
log "Creating example Codeigniter application"
nami execute codeigniter createProject --databaseServerHost $MARIADB_HOST --databaseServerPort $MARIADB_PORT --databaseAdminUser $MARIADB_USER $CODEIGNITER_PROJECT_NAME | grep -v undefined
nami execute codeigniter createProject --databaseServerHost $MARIADB_HOST --databaseServerPort $MARIADB_PORT_NUMBER --databaseAdminUser $MARIADB_USER $CODEIGNITER_PROJECT_NAME | grep -v undefined
log "Codeigniter app created"
else
log "App already created"