Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
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
Container Registry
Model registry
Operate
Environments
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
containers
eic_container
Commits
d5edd847
Commit
d5edd847
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: use chmod on ADD/COPY
parent
82f2974f
No related branches found
No related tags found
1 merge request
!644
feat: use chmod on ADD/COPY
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
containers/dind/Dockerfile
+1
-2
1 addition, 2 deletions
containers/dind/Dockerfile
containers/jug/dev.Dockerfile
+2
-3
2 additions, 3 deletions
containers/jug/dev.Dockerfile
with
3 additions
and
5 deletions
containers/dind/Dockerfile
+
1
−
2
View file @
d5edd847
...
@@ -54,8 +54,7 @@ ADD https://get.docker.com/ /tmp/get-docker.sh
...
@@ -54,8 +54,7 @@ ADD https://get.docker.com/ /tmp/get-docker.sh
RUN
bash /tmp/get-docker.sh
--version
${
DOCKER_VERSION
}
RUN
bash /tmp/get-docker.sh
--version
${
DOCKER_VERSION
}
# Install the magic wrapper.
# Install the magic wrapper.
ADD
./wrapdocker /usr/local/bin/wrapdocker
ADD
--chmod=0755 wrapdocker /usr/local/bin/wrapdocker
RUN
chmod
+x /usr/local/bin/wrapdocker
# Define additional metadata for our image.
# Define additional metadata for our image.
VOLUME
/var/lib/docker
VOLUME
/var/lib/docker
...
...
This diff is collapsed.
Click to expand it.
containers/jug/dev.Dockerfile
+
2
−
3
View file @
d5edd847
...
@@ -193,14 +193,13 @@ COPY profile.d/z11_jug_env.sh /etc/profile.d
...
@@ -193,14 +193,13 @@ COPY profile.d/z11_jug_env.sh /etc/profile.d
COPY
singularity.d /.singularity.d
COPY
singularity.d /.singularity.d
## Add minio client into /usr/local/bin
## Add minio client into /usr/local/bin
ADD
https://dl.min.io/client/mc/release/linux-amd64/mc /usr/local/bin/mc-amd64
ADD
--chmod=0755
https://dl.min.io/client/mc/release/linux-amd64/mc /usr/local/bin/mc-amd64
ADD
https://dl.min.io/client/mc/release/linux-arm64/mc /usr/local/bin/mc-arm64
ADD
--chmod=0755
https://dl.min.io/client/mc/release/linux-arm64/mc /usr/local/bin/mc-arm64
RUN
declare
-A
target
=(
\
RUN
declare
-A
target
=(
\
[
"linux/amd64"
]=
"amd64"
\
[
"linux/amd64"
]=
"amd64"
\
[
"linux/arm64"
]=
"arm64"
\
[
"linux/arm64"
]=
"arm64"
\
)
\
)
\
&&
mv
/usr/local/bin/mc-
${
target
[
${
TARGETPLATFORM
}
]
}
/usr/local/bin/mc
\
&&
mv
/usr/local/bin/mc-
${
target
[
${
TARGETPLATFORM
}
]
}
/usr/local/bin/mc
\
&&
chmod
a+x /usr/local/bin/mc
\
&&
unset
target[
${
TARGETPLATFORM
}
]
\
&&
unset
target[
${
TARGETPLATFORM
}
]
\
&&
for
t
in
${
target
[*]
}
;
do
\
&&
for
t
in
${
target
[*]
}
;
do
\
rm
/usr/local/bin/mc-
${
t
}
;
\
rm
/usr/local/bin/mc-
${
t
}
;
\
...
...
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