Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
698d5fc5
Commit
698d5fc5
authored
2 years ago
by
hahn
Browse files
Options
Downloads
Patches
Plain Diff
update docker init script
parent
19a1494f
No related branches found
No related tags found
1 merge request
!42
6295 commits with ampersand
Changes
1
Hide 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 @
698d5fc5
...
@@ -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