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
863fa2fd
Commit
863fa2fd
authored
3 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#104
Delete after leaving l3d if L3D_ALWAYS_CLEANUP is set to 1
parent
75ff64df
No related branches found
Branches containing commit
Tags
feature104a
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
run/scripts/info
+1
-0
1 addition, 0 deletions
run/scripts/info
run/scripts/start
+1
-0
1 addition, 0 deletions
run/scripts/start
setup/scripts/l3d
+6
-0
6 additions, 0 deletions
setup/scripts/l3d
start.sh
+4
-0
4 additions, 0 deletions
start.sh
with
13 additions
and
0 deletions
Dockerfile
+
1
−
0
View file @
863fa2fd
...
...
@@ -20,6 +20,7 @@ ADD ahoy.changelog.yml /etc/ahoy/changelog.yml
ADD
run/scripts/info /usr/local/bin/l3d
ADD
run/scripts/version /usr/local/bin/version
ADD
run/scripts/l3dnewversion /usr/local/bin/l3dnewversion
ADD
run/scripts/delete /usr/local/bin/.delete
RUN
echo
"Install dorgflow"
&&
\
cd
/var/opt
&&
\
...
...
This diff is collapsed.
Click to expand it.
run/scripts/info
+
1
−
0
View file @
863fa2fd
...
...
@@ -40,6 +40,7 @@ function infohost() {
echo
"User:
${
USERNAME
}
(
${
USERID
}
:
${
GROUPID
}
-
${
GROUPIDS
}
)"
echo
"Home:
${
HOMEDIR
}
"
echo
"Shell:
${
L3DSHELL
}
"
echo
"Cleanup:
${
L3D_ALWAYS_CLEANUP
}
"
echo
"Workdir:
${
WORKDIR
}
"
echo
"SSH:
${
SSHAUTH
}
-
${
SSHAUTHSOCK
}
"
sectionFooter
...
...
This diff is collapsed.
Click to expand it.
run/scripts/start
+
1
−
0
View file @
863fa2fd
...
...
@@ -46,6 +46,7 @@ function startContainer() {
start_params
=(
--env
L3DVERSION
=
${
L3DVERSION
}
--env
L3DSHELL
=
${
L3DSHELL
}
--env
L3D_ALWAYS_CLEANUP
=
${
L3D_ALWAYS_CLEANUP
}
--env
HOME
=
/home/
${
USERNAME
}
--env
COMPOSE_PROJECT_NAME
=
${
COMPOSE_PROJECT_NAME
}
--env
COMPOSER_DOWNGRADE
=
${
COMPOSER_DOWNGRADE
}
...
...
This diff is collapsed.
Click to expand it.
setup/scripts/l3d
+
6
−
0
View file @
863fa2fd
...
...
@@ -73,6 +73,11 @@ else
L3DSHELL
=
"/usr/bin/fish"
fi
# Set l3d cleanup
if
[[
"x
${
L3D_ALWAYS_CLEANUP
}
"
==
"x"
]]
;
then
L3D_ALWAYS_CLEANUP
=
0
fi
# Read environment variables
if
[[
-f
"
${
HOME
}
/.env"
]]
;
then
export
$(
cat
${
HOME
}
/.env | xargs
)
>
/dev/null 2>&1
...
...
@@ -89,6 +94,7 @@ project_params=(
--env
GROUPIDS
=
"
${
GROUPIDS
}
"
--env
HOMEDIR
=
${
HOME
}
--env
L3DSHELL
=
${
L3DSHELL
}
--env
L3D_ALWAYS_CLEANUP
=
${
L3D_ALWAYS_CLEANUP
}
--env
WORKDIR
=
${
PWD
}
--env
SSHAUTH
=
${
SSHAUTH
}
--env
SSHAUTHSOCK
=
${
SSHAUTHSOCK
}
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
4
−
0
View file @
863fa2fd
...
...
@@ -259,3 +259,7 @@ if [[ -x "${L3DSHELL}" ]]; then
else
/usr/bin/fish
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