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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
docker-php-starterkit
Commits
f392bc19
Commit
f392bc19
authored
9 months ago
by
Axel Hahn
Browse files
Options
Downloads
Patches
Plain Diff
update container view
parent
11236f8b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/init.sh
+17
-11
17 additions, 11 deletions
docker/init.sh
with
17 additions
and
11 deletions
docker/init.sh
+
17
−
11
View file @
f392bc19
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
# 2024-07-22 v1.14 <axel.hahn@unibe.ch> show colored boxes with container status
# 2024-07-22 v1.14 <axel.hahn@unibe.ch> show colored boxes with container status
# 2024-07-24 v1.15 <axel.hahn@unibe.ch> update menu output
# 2024-07-24 v1.15 <axel.hahn@unibe.ch> update menu output
# 2024-07-26 v1.16 <axel.hahn@unibe.ch> hide unnecessary menu items (WIP)
# 2024-07-26 v1.16 <axel.hahn@unibe.ch> hide unnecessary menu items (WIP)
# 2024-07-29 v1.17 <axel.hahn@unibe.ch> hide unnecessary menu items; reorder functions
# 2024-07-29 v1.17 <www.axel-hahn.de> hide unnecessary menu items; reorder functions
# 2024-08-14 v1.18 <www.axel-hahn.de> update container view
# ======================================================================
# ======================================================================
cd
"
$(
dirname
"
$0
"
)
"
||
exit
1
cd
"
$(
dirname
"
$0
"
)
"
||
exit
1
...
@@ -35,7 +36,7 @@ _self=$( basename "$0" )
...
@@ -35,7 +36,7 @@ _self=$( basename "$0" )
# shellcheck source=/dev/null
# shellcheck source=/dev/null
.
"
${
_self
}
.cfg"
||
exit
1
.
"
${
_self
}
.cfg"
||
exit
1
_version
=
"1.1
7
"
_version
=
"1.1
8
"
# 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"
...
@@ -45,6 +46,8 @@ fgRed="\e[31m"
...
@@ -45,6 +46,8 @@ fgRed="\e[31m"
fgGreen
=
"
\e
[32m"
fgGreen
=
"
\e
[32m"
fgBrown
=
"
\e
[33m"
fgBrown
=
"
\e
[33m"
fgBlue
=
"
\e
[34m"
fgBlue
=
"
\e
[34m"
fgInvert
=
"
\e
[7m"
fgReset
=
"
\e
[0m"
fgReset
=
"
\e
[0m"
# ----- status varsiables
# ----- status varsiables
...
@@ -143,9 +146,12 @@ function showMenu(){
...
@@ -143,9 +146,12 @@ function showMenu(){
fi
fi
echo
echo
if
[
$DC_WEB_UP
-eq
0
]
||
[
$_bAll
-eq
1
]
;
then
if
[
$DC_WEB_UP
-eq
0
]
||
[
$_bAll
-eq
1
]
;
then
echo
"
${
_spacer
}
$(
_key u
)
- startup containers docker-compose ... up -d"
if
[
$DC_CONFIG_CHANGED
-eq
0
]
||
[
$_bAll
-eq
1
]
;
then
echo
"
${
_spacer
}
$(
_key U
)
- startup containers docker-compose ... up -d --build"
echo
"
${
_spacer
}
$(
_key u
)
- startup containers docker-compose ... up -d"
echo
"
${
_spacer
}
$(
_key r
)
- remove containers docker-compose rm -f"
echo
"
${
_spacer
}
$(
_key U
)
- startup containers docker-compose ... up -d --build"
echo
echo
"
${
_spacer
}
$(
_key r
)
- remove containers docker-compose rm -f"
fi
fi
fi
if
[
$DC_WEB_UP
-eq
1
]
||
[
$_bAll
-eq
1
]
;
then
if
[
$DC_WEB_UP
-eq
1
]
||
[
$_bAll
-eq
1
]
;
then
echo
"
${
_spacer
}
$(
_key s
)
- shutdown containers docker-compose stop"
echo
"
${
_spacer
}
$(
_key s
)
- shutdown containers docker-compose stop"
...
@@ -455,12 +461,12 @@ function _showContainers(){
...
@@ -455,12 +461,12 @@ function _showContainers(){
fi
fi
h2 CONTAINERS
h2 CONTAINERS
printf
"
$colWeb
____________________________________
$colDb
____________________________________
$fgReset
\n
"
printf
"
$colWeb
| %-32s
\
$colDb
| %-32s
\
$fgReset
\n
"
""
""
echo
printf
"
$colWeb
| %-32s |
$colDb
|
%-32s
|
$fgReset
\n
"
"
${
APP_NAME
}
-web
${
StatusWeb
}
"
"
${
APP_NAME
}
-db
${
StatusDb
}
"
printf
"
$colWeb
$fgInvert
%-32s
$fgReset
$colDb$fgInvert
%-32s
$fgReset
\n
"
"WEB
${
StatusWeb
}
"
"
DB
${
StatusDb
}
"
printf
"
$colWeb
| %-32s |
$colDb
|
%-32s
|
$fgReset
\n
"
"
PHP
${
APP_PHP_VERSION
}
"
"
${
MYSQL_IMAGE
}
"
printf
"
%-32s
$fgReset
%-32s
$fgReset
\n
"
"
PHP
${
APP_PHP_VERSION
}
"
"
${
MYSQL_IMAGE
}
"
printf
"
$colWeb
| %-32s |
$colDb
|
%-32s
|
$fgReset
\n
"
"
:
${
APP_PORT
}
"
"
:
${
DB_PORT
}
"
printf
"
%-32s
$fgReset
%-32s
$fgReset
\n
"
"
:
${
APP_PORT
}
"
":
${
DB_PORT
}
"
printf
"
$colWeb
|____________________________________|
$colDb
|____________________________________|
$fgReset
\n
"
echo
echo
if
[
-n
"
$Status
"
]
;
then
if
[
-n
"
$Status
"
]
;
then
...
...
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