Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AdminLTE renderer
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
AdminLTE renderer
Commits
bc919acd
Commit
bc919acd
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'update_2022-12' into 'main'
update docker/init.sh See merge request
!2
parents
009ff051
c6f7ee83
No related branches found
No related tags found
1 merge request
!2
update docker/init.sh
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/init.sh
+9
-7
9 additions, 7 deletions
docker/init.sh
with
9 additions
and
7 deletions
docker/init.sh
+
9
−
7
View file @
bc919acd
...
@@ -6,7 +6,9 @@
...
@@ -6,7 +6,9 @@
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# 2021-11-nn v1.0 <axel.hahn@iml.unibe.ch>
# 2021-11-nn v1.0 <axel.hahn@iml.unibe.ch>
# 2022-07-19 v1.1 <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"
# 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-20 v1.4 <axel.hahn@unibe.ch> replace fgrep with grep -F
# ======================================================================
# ======================================================================
cd
$(
dirname
$0
)
cd
$(
dirname
$0
)
...
@@ -15,7 +17,7 @@ cd $( dirname $0 )
...
@@ -15,7 +17,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.
2
"
_version
=
"1.
4
"
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# FUNCTIONS
# FUNCTIONS
...
@@ -89,7 +91,7 @@ function _removeGitdata(){
...
@@ -89,7 +91,7 @@ function _removeGitdata(){
function
_fix_no-db
(){
function
_fix_no-db
(){
local
_file
=
$1
local
_file
=
$1
if
[
$DB_ADD
=
false
]
;
then
if
[
$DB_ADD
=
false
]
;
then
typeset
-i
local
iStart
=
$(
cat
${
_file
}
|
f
grep
-n
"
$CUTTER_NO_DATABASE
"
|
cut
-f
1
-d
':'
)
-1
typeset
-i
local
iStart
=
$(
cat
${
_file
}
|
grep
-
F
n
"
$CUTTER_NO_DATABASE
"
|
cut
-f
1
-d
':'
)
-1
if
[
$iStart
-gt
0
]
;
then
if
[
$iStart
-gt
0
]
;
then
sed
-ni
"1,
${
iStart
}
p"
${
_file
}
sed
-ni
"1,
${
iStart
}
p"
${
_file
}
fi
fi
...
@@ -189,7 +191,7 @@ function _showContainers(){
...
@@ -189,7 +191,7 @@ function _showContainers(){
local
bLong
=
$1
local
bLong
=
$1
h2 CONTAINERS
h2 CONTAINERS
if
[
-z
"
$bLong
"
]
;
then
if
[
-z
"
$bLong
"
]
;
then
docker-compose ps
docker-compose
-p
"
$APP_NAME
"
ps
else
else
docker ps |
grep
$APP_NAME
docker ps |
grep
$APP_NAME
fi
fi
...
@@ -291,17 +293,17 @@ while true; do
...
@@ -291,17 +293,17 @@ while true; do
echo
"
$frontendurl
"
echo
"
$frontendurl
"
else
else
echo
"ERROR: docker-compose up failed :-/"
echo
"ERROR: docker-compose up failed :-/"
docker-compose logs |
tail
docker-compose
-p
"
$APP_NAME
"
logs |
tail
fi
fi
echo
echo
_wait
_wait
;;
;;
s
)
s
)
docker-compose stop
docker-compose
-p
"
$APP_NAME
"
stop
;;
;;
r
)
r
)
docker-compose
rm
-f
docker-compose
-p
"
$APP_NAME
"
rm
-f
;;
;;
c
)
c
)
docker ps
docker ps
...
...
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