Skip to content

Commit

Permalink
Adding composer to the PHP container, update the example.env file
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbo8098 committed Jul 2, 2022
1 parent 7804fd1 commit 4a20e45
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions example.env
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@

# environment for MYSQL
MYSQL_ROOT_PASSWORD=yourmysqlrootpassword
MYSQL_DATABASE=gibbon
MYSQL_USER=gibbon
MYSQL_PASSWORD=yourmysqlgibbonrandompassword
LANG=de_DE.utf8
LANG=en_US.utf8

GIBBON_SITENAME=[email protected]
GIBBON_BASEDIR=/var/www/html
#GIBBON_GIT_REPO=
SERVER_ADMIN_MAIL=[email protected]

MAILNAME=[email protected]
GIBBON_VERSION=21.0.01
GIBBON_VERSION=25.0.00
SMARTHOST_ADDRESS=[email protected]
SMARTHOST_PORT=25
SMARTHOST_USER=yourmailuser
SMARTHOST_PASSWORD=yourmailuserpassword
SMARTHOST_ALIASES=*.yourdomain.edu
SMARTHOST_ALIASES=*.yourdomain.edu
2 changes: 2 additions & 0 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ RUN apk add rsync \
&& cp "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" \
&& chmod 0755 /usr/local/bin/docker-php-gibbonsetup \
&& sed -i "`wc -l < /usr/local/bin/docker-php-entrypoint`i\\/usr/local/bin/docker-php-gibbonsetup\\" /usr/local/bin/docker-php-entrypoint

COPY --from=composer/composer /usr/bin/composer /usr/bin/composer
3 changes: 3 additions & 0 deletions php/docker-php-gibbonsetup
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ else
sed -i "s/$databasePassword = .*$/$databasePassword = '${GIBBON_DB_PASSWORD}';/g" ${GIBBON_BASEDIR}/config.php
sed -i "s/$databaseName = .*$/$databaseName = '${GIBBON_DB_DB}';/g" ${GIBBON_BASEDIR}/config.php
fi

cd /var/www/html/
composer install

0 comments on commit 4a20e45

Please sign in to comment.