Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
OCamlPro
ocaml-docker-images
Commits
ba1de7f9
Commit
ba1de7f9
authored
Oct 05, 2020
by
Louis Gesbert
Browse files
Hack to force a fetch of opam repos on every image build
Also, remove old workaround for /tmp bug
parent
9d78592a
Pipeline
#10909
passed with stages
in 14 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Dockerfile
Dockerfile
+2
-1
ocaml-image.yml.in
ocaml-image.yml.in
+1
-0
No files found.
Dockerfile
View file @
ba1de7f9
...
...
@@ -34,5 +34,6 @@ USER ocaml
WORKDIR
/home/ocaml
ENV
OPAMYES 1
RUN
touch
/tmp/foo
ARG
LAST_REPO_UPDATE=0
RUN
echo
"LAST_REPO_UPDATE=
${
LAST_REPO_UPDATE
}
"
RUN
[
"/usr/local/bin/opam"
,
"init"
,
"-a"
,
"--bare"
,
"--disable-sandboxing"
]
ocaml-image.yml.in
View file @
ba1de7f9
...
...
@@ -19,6 +19,7 @@ ocaml-image-%OCAML_VERSION%:
--context=$CI_PROJECT_DIR
--dockerfile=$CI_PROJECT_DIR/Dockerfile
--build-arg=OCAML_VERSION=$OCAML_VERSION
--build-arg=LAST_REPO_UPDATE=$(date +%s)
--destination=$CI_REGISTRY_IMAGE:${OCAML_VERSION%.*}
$(if [ "$OCAML_VERSION" = "$LATEST_OCAML_VERSION" ]; then
echo "--destination=$CI_REGISTRY_IMAGE:latest";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment