Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LakeDropsDrupalDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
Docker
LakeDropsDrupalDev
Commits
778f593a
Commit
778f593a
authored
3 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/v2.2.2'
parents
7f05bc47
b3fd11d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
ahoy.changelog.yml
+6
-2
6 additions, 2 deletions
ahoy.changelog.yml
run/Dockerfile
+3
-2
3 additions, 2 deletions
run/Dockerfile
run/scripts/delete
+1
-1
1 addition, 1 deletion
run/scripts/delete
run/scripts/start
+10
-2
10 additions, 2 deletions
run/scripts/start
start.sh
+2
-6
2 additions, 6 deletions
start.sh
with
22 additions
and
13 deletions
ahoy.changelog.yml
+
6
−
2
View file @
778f593a
ahoyapi
:
v2
ahoyapi
:
v2
commands
:
commands
:
extract
:
extract
:
cmd
:
git log $(git describe --tags `git rev-list --tags --max-count=1`)..HEAD --oneline | cut -d' ' -f 2-999
cmd
:
|
usage
:
Extract changelog from Git for the current project since the last release.
if [ "x$1" <> "x" ]; then
cd $1
fi
git log $(git describe --tags `git rev-list --tags --max-count=1`)..HEAD --oneline | cut -d' ' -f 2-999
usage
:
Extract changelog from Git for the current project (or the given path as 1st argument) since the last release.
This diff is collapsed.
Click to expand it.
run/Dockerfile
+
3
−
2
View file @
778f593a
...
@@ -23,8 +23,9 @@ RUN apk add --no-cache bash curl jq && \
...
@@ -23,8 +23,9 @@ RUN apk add --no-cache bash curl jq && \
ln
-s
/lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib
&&
\
ln
-s
/lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib
&&
\
ln
-s
/usr/lib/libgcc_s.so.1 /lib/libgcc_s.so.1
&&
\
ln
-s
/usr/lib/libgcc_s.so.1 /lib/libgcc_s.so.1
&&
\
ln
-s
/lib/libgcc_s.so.1 /usr/glibc-compat/lib/
&&
\
ln
-s
/lib/libgcc_s.so.1 /usr/glibc-compat/lib/
&&
\
wget
-q
https://github.com/docker/compose/releases/download/
${
compose_version
}
/docker-compose-
`
uname
-s
`
-
`
uname
-m
`
-O
/usr/local/bin/docker-compose
&&
\
mkdir
-p
/usr/local/lib/docker/cli-plugins
&&
\
chmod
+x /usr/local/bin/docker-compose
&&
\
curl
-SL
https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64
-o
/usr/local/lib/docker/cli-plugins/docker-compose
&&
\
chmod
+x /usr/local/lib/docker/cli-plugins/docker-compose
&&
\
sed
-i
-e
"s/'{{ version }}'/
${
VERSION
}
/g"
/usr/local/bin/run
sed
-i
-e
"s/'{{ version }}'/
${
VERSION
}
/g"
/usr/local/bin/run
ENTRYPOINT
/bin/sh
ENTRYPOINT
/bin/sh
This diff is collapsed.
Click to expand it.
run/scripts/delete
+
1
−
1
View file @
778f593a
...
@@ -32,7 +32,7 @@ function removenetwork() {
...
@@ -32,7 +32,7 @@ function removenetwork() {
function
rebuildtraefik
()
{
function
rebuildtraefik
()
{
cd
${
HOME
}
/.traefik
||
return
cd
${
HOME
}
/.traefik
||
return
if
[[
-f
"docker-compose.yml"
]]
;
then
if
[[
-f
"docker-compose.yml"
]]
;
then
docker
-
compose
--project-name
traefik up
-d
--remove-orphans
docker
compose
--project-name
traefik up
-d
--remove-orphans
fi
fi
if
[[
"
$NETWORKS
"
==
""
]]
;
then
if
[[
"
$NETWORKS
"
==
""
]]
;
then
return
return
...
...
This diff is collapsed.
Click to expand it.
run/scripts/start
+
10
−
2
View file @
778f593a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
function
getConfig
()
{
function
getConfig
()
{
if
[[
!
-n
${
PHP_VERSION
}
]]
;
then
if
[[
!
-n
${
PHP_VERSION
}
]]
;
then
while
true
;
do
while
true
;
do
read
-p
"Which PHP version is your project using? "
PHP_VERSION
read
-p
"Which PHP version is your project using?
[0=No, 1=Yes]
"
PHP_VERSION
case
${
PHP_VERSION
}
in
case
${
PHP_VERSION
}
in
7.0
)
break
;;
7.0
)
break
;;
7.1
)
break
;;
7.1
)
break
;;
...
@@ -17,7 +17,7 @@ function getConfig() {
...
@@ -17,7 +17,7 @@ function getConfig() {
fi
fi
if
[[
!
-n
${
COMPOSER_DOWNGRADE
}
]]
;
then
if
[[
!
-n
${
COMPOSER_DOWNGRADE
}
]]
;
then
while
true
;
do
while
true
;
do
read
-p
"Do you want to downgrade Composer to version 1? "
COMPOSER_DOWNGRADE
read
-p
"Do you want to downgrade Composer to version 1?
[0=No, 1=Yes]
"
COMPOSER_DOWNGRADE
case
${
COMPOSER_DOWNGRADE
}
in
case
${
COMPOSER_DOWNGRADE
}
in
0
)
break
;;
0
)
break
;;
1
)
break
;;
1
)
break
;;
...
@@ -30,6 +30,12 @@ function getConfig() {
...
@@ -30,6 +30,12 @@ function getConfig() {
fi
fi
}
}
function
exitContainer
()
{
if
[[
"
$L3D_ALWAYS_CLEANUP
"
==
"1"
]]
;
then
/usr/local/bin/.delete
$COMPOSE_PROJECT_NAME
fi
}
function
startContainer
()
{
function
startContainer
()
{
if
[[
-n
${
COMPOSE_PROJECT_NAME
}
]]
;
then
if
[[
-n
${
COMPOSE_PROJECT_NAME
}
]]
;
then
mode
=
REBUILD
mode
=
REBUILD
...
@@ -93,6 +99,7 @@ function startContainer() {
...
@@ -93,6 +99,7 @@ function startContainer() {
"
${
start_params
[@]
}
"
\
"
${
start_params
[@]
}
"
\
registry.lakedrops.com/docker/l3d/php-
${
PHP_VERSION
}
:
${
L3DVERSION
}
\
registry.lakedrops.com/docker/l3d/php-
${
PHP_VERSION
}
:
${
L3DVERSION
}
\
/usr/local/bin/.start
/usr/local/bin/.start
exitContainer
return
return
fi
fi
fi
fi
...
@@ -102,6 +109,7 @@ function startContainer() {
...
@@ -102,6 +109,7 @@ function startContainer() {
--env
SSHAUTH
=
${
SSHAUTH
}
\
--env
SSHAUTH
=
${
SSHAUTH
}
\
${
COMPOSE_PROJECT_NAME
}
_l3d
\
${
COMPOSE_PROJECT_NAME
}
_l3d
\
/usr/local/bin/.start
/usr/local/bin/.start
exitContainer
fi
fi
}
}
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
2
−
6
View file @
778f593a
...
@@ -94,8 +94,8 @@ function create {
...
@@ -94,8 +94,8 @@ function create {
# Cleanup
# Cleanup
if
[[
$L3D_CLEANUP
-eq
1
]]
;
then
if
[[
$L3D_CLEANUP
-eq
1
]]
;
then
docker
-
compose stop
docker
compose stop
docker
-
compose
rm
--force
-v
docker
compose
rm
--force
-v
fi
fi
fi
fi
fi
fi
...
@@ -259,7 +259,3 @@ if [[ -x "${L3DSHELL}" ]]; then
...
@@ -259,7 +259,3 @@ if [[ -x "${L3DSHELL}" ]]; then
else
else
/usr/bin/fish
/usr/bin/fish
fi
fi
if
[[
"
$L3D_ALWAYS_CLEANUP
"
==
"1"
]]
;
then
/usr/local/bin/.delete
$COMPOSE_PROJECT_NAME
fi
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