Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-php-starterkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
docker-php-starterkit
Commits
b24b18e4
Commit
b24b18e4
authored
2 years ago
by
Axel Hahn
Browse files
Options
Downloads
Patches
Plain Diff
up with and without --build
parent
8e5d640b
No related branches found
No related tags found
1 merge request
!3
up with and without --build
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/init.sh
+10
-5
10 additions, 5 deletions
docker/init.sh
with
10 additions
and
5 deletions
docker/init.sh
+
10
−
5
View file @
b24b18e4
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
# 2022-11-16 v1.2 <www.axel-hahn.de> use docker-compose -p "$APP_NAME"
# 2022-11-16 v1.2 <www.axel-hahn.de> use docker-compose -p "$APP_NAME"
# 2022-12-18 v1.3 <www.axel-hahn.de> add -p "$APP_NAME" in other docker commands
# 2022-12-18 v1.3 <www.axel-hahn.de> add -p "$APP_NAME" in other docker commands
# 2022-12-20 v1.4 <axel.hahn@unibe.ch> replace fgrep with grep -F
# 2022-12-20 v1.4 <axel.hahn@unibe.ch> replace fgrep with grep -F
# 2023-03-06 v1.5 <www.axel-hahn.de> up with and without --build
# ======================================================================
# ======================================================================
cd
$(
dirname
$0
)
cd
$(
dirname
$0
)
...
@@ -17,7 +18,7 @@ cd $( dirname $0 )
...
@@ -17,7 +18,7 @@ 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.
4
"
_version
=
"1.
5
"
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# FUNCTIONS
# FUNCTIONS
...
@@ -251,7 +252,8 @@ while true; do
...
@@ -251,7 +252,8 @@ while true; do
echo
" t - generate files from templates"
echo
" t - generate files from templates"
echo
" T - remove generated files"
echo
" T - remove generated files"
echo
echo
echo
" u - startup containers docker-compose up -d"
echo
" u - startup containers docker-compose ... up -d"
echo
" U - startup containers docker-compose ... up -d --build"
echo
" s - shutdown containers docker-compose stop"
echo
" s - shutdown containers docker-compose stop"
echo
" r - remove containers docker-compose rm -f"
echo
" r - remove containers docker-compose rm -f"
echo
echo
...
@@ -286,9 +288,12 @@ while true; do
...
@@ -286,9 +288,12 @@ while true; do
_showInfos
_showInfos
_wait
_wait
;;
;;
u
)
u|U
)
if
docker-compose
-p
"
$APP_NAME
"
--verbose
up
-d
--remove-orphans
--build
;
then
dockerUp
=
"docker-compose -p "
$APP_NAME
" --verbose up -d --remove-orphans"
# test ! -z "${APP_ONSTARTUP}" && sleep 2 && docker exec -it appmonitor-server /bin/bash -c "${APP_ONSTARTUP}"
if
[
"
$action
"
=
"U"
]
;
then
dockerUp+
=
" --build"
fi
if
$dockerUp
;
then
echo
"In a web browser:"
echo
"In a web browser:"
echo
"
$frontendurl
"
echo
"
$frontendurl
"
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment