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
d69b5b4b
Commit
d69b5b4b
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#118
Move yq operations from l3d script inside the l3drun container
parent
27ff37f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!16
Merging develop into main
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
run/Dockerfile
+1
-1
1 addition, 1 deletion
run/Dockerfile
run/scripts/run
+7
-0
7 additions, 0 deletions
run/scripts/run
run/scripts/start
+1
-0
1 addition, 0 deletions
run/scripts/start
setup/scripts/l3d
+3
-6
3 additions, 6 deletions
setup/scripts/l3d
start.sh
+7
-2
7 additions, 2 deletions
start.sh
with
19 additions
and
9 deletions
run/Dockerfile
+
1
−
1
View file @
d69b5b4b
...
...
@@ -14,7 +14,7 @@ ARG glibc_version=2.28-r0
ADD
scripts/* /usr/local/bin/
RUN
apk add
--no-cache
bash curl jq
&&
\
RUN
apk add
--no-cache
bash curl jq
yq
&&
\
wget
-q
https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
-O
/etc/apk/keys/sgerrand.rsa.pub
&&
\
wget
-q
https://github.com/sgerrand/alpine-pkg-glibc/releases/download/
${
glibc_version
}
/glibc-
${
glibc_version
}
.apk
&&
\
apk add
--no-cache
--force-overwrite
glibc-
${
glibc_version
}
.apk
&&
\
...
...
This diff is collapsed.
Click to expand it.
run/scripts/run
+
7
−
0
View file @
d69b5b4b
...
...
@@ -2,6 +2,13 @@
export
L3DVERSION
=
'{{ version }}'
if
[[
"
$L3D_CONFIG
"
!=
"[]"
]]
;
then
V
=
$(
echo
"
$L3D_CONFIG
"
| yq
eval
.docker4drupal.php.version
)
if
[[
"
$V
"
!=
"null"
]]
;
then
export
PHP_VERSION
=
$V
fi
fi
COMMAND
=
start
if
[[
-n
"
$1
"
]]
;
then
if
[[
-f
"/usr/local/bin/
$1
"
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
run/scripts/start
+
1
−
0
View file @
d69b5b4b
...
...
@@ -129,6 +129,7 @@ function startContainer() {
--env
HOMEDIR
=
${
HOMEDIR
}
\
--env
WORKDIR
=
${
WORKDIR
}
\
--env
SSHAUTH
=
${
SSHAUTH
}
\
--env
PHP_VERSION
=
${
PHP_VERSION
}
\
${
COMPOSE_PROJECT_NAME
}
_l3d
\
/usr/local/bin/.start
exitContainer
...
...
This diff is collapsed.
Click to expand it.
setup/scripts/l3d
+
3
−
6
View file @
d69b5b4b
...
...
@@ -85,13 +85,9 @@ fi
if
[[
-f
".env"
]]
;
then
export
$(
cat
.env | xargs
)
>
/dev/null 2>&1
fi
L3D_CONFIG
=[]
if
[[
-f
".lakedrops.yml"
]]
;
then
V
=
$(
yq
eval
.docker4drupal.php.version .lakedrops.yml
)
if
[[
"
$V
"
!=
"null"
]]
;
then
PHP_VERSION
=
$V
echo
"PHP_VERSION=
${
PHP_VERSION
}
"
>>
.env
env
-i
$(
cat
.env | xargs
)
>
.env
fi
L3D_CONFIG
=
$(
cat
.lakedrops.yml
)
fi
# Create project container parameters
...
...
@@ -103,6 +99,7 @@ project_params=(
--env
HOMEDIR
=
${
HOME
}
--env
L3DSHELL
=
${
L3DSHELL
}
--env
L3D_ALWAYS_CLEANUP
=
${
L3D_ALWAYS_CLEANUP
}
--env
L3D_CONFIG
=
${
L3D_CONFIG
}
--env
WORKDIR
=
${
PWD
}
--env
SSHAUTH
=
${
SSHAUTH
}
--env
SSHAUTHSOCK
=
${
SSHAUTHSOCK
}
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
7
−
2
View file @
d69b5b4b
...
...
@@ -214,14 +214,19 @@ function setupAhoy {
fi
}
if
[[
-n
${
PHP_VERSION
}
]]
;
then
echo
"PHP_VERSION=
${
PHP_VERSION
}
"
>>
.env
fi
readEnv
# Validate PHP version
INSTALLED_PHP_VERSION
=
$(
php
-r
"echo(substr(phpversion(),0,3));"
)
if
[[
"
$INSTALLED_PHP_VERSION
"
!=
"
$PHP_VERSION
"
]]
;
then
echo
-e
"
\\
033[31m =============================================
\\
033[0m"
echo
-e
"
\\
033[31m =============================================
========
\\
033[0m"
echo
-e
"
\\
033[31m ERROR: PHP
$INSTALLED_PHP_VERSION
installed but
$PHP_VERSION
expected !!!
\\
033[0m"
echo
-e
"
\\
033[31m =============================================
\\
033[0m"
echo
-e
"
\\
033[31m =============================================
========
\\
033[0m"
if
[[
"
${
COMPOSE_PROJECT_NAME
}
"
!=
"."
]]
;
then
echo
-e
"
\\
033[31m Killed the outdated container, please start again !!!
\\
033[0m"
echo
-e
"
\\
033[31m =====================================================
\\
033[0m"
docker
rm
-f
${
COMPOSE_PROJECT_NAME
}
_l3d
fi
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