Skip to content
Snippets Groups Projects
Commit 80c6710a authored by hahn's avatar hahn
Browse files

update docker files

parent 75d0d9fb
No related branches found
No related tags found
1 merge request!395591 remove warnings
# ====================================================================== # ======================================================================
# #
# GENERATED BY docker/init.sh - template: ./templates/dot_env - e2cde05722688ff85d3a93e9cd55787e # GENERATED BY init.sh - template: ./templates/dot_env - e2cde05722688ff85d3a93e9cd55787e
# values to be used in docker-composer.yml # values to be used in docker-composer.yml
# #
# ====================================================================== # ======================================================================
......
# #
# GENERATED BY docker/init.sh - template: ./templates/web-server-Dockerfile - 42dce773c83597a7d05af398bdd66d15 # GENERATED BY init.sh - template: ./templates/web-server-Dockerfile - 42dce773c83597a7d05af398bdd66d15
# #
FROM php:8.1-apache FROM php:8.1-apache
......
# #
# GENERATED BY docker/init.sh - template: ./templates/vhost_app.conf - 9a9cf79de5a3584c0cef6cb79c339c25 # GENERATED BY init.sh - template: ./templates/vhost_app.conf - 9a9cf79de5a3584c0cef6cb79c339c25
# #
......
; ;
; GENERATED BY docker/init.sh - template: ./templates/extra-php-config.ini - 80c23edaf568e2c36b9926fe2339e481 ; GENERATED BY init.sh - template: ./templates/extra-php-config.ini - 80c23edaf568e2c36b9926fe2339e481
; ;
[PHP] [PHP]
......
# #
# GENERATED BY docker/init.sh - template: ./templates/docker-compose.yml - 97c88229bd2b5099544c013052b8d9c3 # GENERATED BY init.sh - template: ./templates/docker-compose.yml - 97c88229bd2b5099544c013052b8d9c3
# #
# ====================================================================== # ======================================================================
# #
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
# DOCKER PHP DEV ENVIRONMENT :: INIT # DOCKER PHP DEV ENVIRONMENT :: INIT
# #
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 2021-11-nn <axel.hahn@iml.unibe.ch> # 2021-11-nn v1.0 <axel.hahn@iml.unibe.ch>
# 2022-07-19 <axel.hahn@iml.unibe.ch> support multiple dirs for setfacl # 2022-07-19 v1.1 <axel.hahn@iml.unibe.ch> support multiple dirs for setfacl
# 2022-07-19 v1.2 <www.axel-hahn.de> use docker-compose -p "$APP_NAME"
# ====================================================================== # ======================================================================
cd $( dirname $0 ) cd $( dirname $0 )
...@@ -14,6 +15,8 @@ cd $( dirname $0 ) ...@@ -14,6 +15,8 @@ cd $( dirname $0 )
# git@git-repo.iml.unibe.ch:iml-open-source/docker-php-starterkit.git # git@git-repo.iml.unibe.ch:iml-open-source/docker-php-starterkit.git
selfgitrepo="docker-php-starterkit.git" selfgitrepo="docker-php-starterkit.git"
_version="1.2"
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# FUNCTIONS # FUNCTIONS
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -233,7 +236,7 @@ action=$1 ...@@ -233,7 +236,7 @@ action=$1
while true; do while true; do
echo echo
echo -e "\e[32m===== INITIALIZER FOR APP [$APP_NAME] ===== \e[0m" echo -e "\e[32m===== INITIALIZER FOR DOCKER APP [$APP_NAME] v$_version ===== \e[0m\n\r"
if [ -z "$action" ]; then if [ -z "$action" ]; then
...@@ -282,7 +285,7 @@ while true; do ...@@ -282,7 +285,7 @@ while true; do
_wait _wait
;; ;;
u) u)
if docker-compose --verbose up -d --remove-orphans --build; then if docker-compose -p "$APP_NAME" --verbose up -d --remove-orphans --build; then
# test ! -z "${APP_ONSTARTUP}" && sleep 2 && docker exec -it appmonitor-server /bin/bash -c "${APP_ONSTARTUP}" # test ! -z "${APP_ONSTARTUP}" && sleep 2 && docker exec -it appmonitor-server /bin/bash -c "${APP_ONSTARTUP}"
echo "In a web browser:" echo "In a web browser:"
echo " $frontendurl" echo " $frontendurl"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment