Merge branch 'feature/version2' into 'dev'
Workaround to fix --version See merge request ligolang/ligo!263
This commit is contained in:
commit
4e304f01cf
@ -1,6 +1,9 @@
|
|||||||
ARG target
|
ARG target
|
||||||
FROM ocaml/opam2:${target}
|
FROM ocaml/opam2:${target}
|
||||||
|
|
||||||
|
ARG ci_job_id
|
||||||
|
ENV CI_JOB_ID=$ci_job_id
|
||||||
|
|
||||||
RUN opam switch 4.07 && eval $(opam env)
|
RUN opam switch 4.07 && eval $(opam env)
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
@ -26,7 +29,7 @@ RUN opam update
|
|||||||
|
|
||||||
# Install ligo
|
# Install ligo
|
||||||
RUN sh scripts/install_vendors_deps.sh
|
RUN sh scripts/install_vendors_deps.sh
|
||||||
RUN opam install -y ./src
|
RUN opam install -y .
|
||||||
|
|
||||||
# Use the ligo binary as a default command
|
# Use the ligo binary as a default command
|
||||||
ENTRYPOINT [ "/home/opam/.opam/4.07/bin/ligo" ]
|
ENTRYPOINT [ "/home/opam/.opam/4.07/bin/ligo" ]
|
||||||
|
@ -8,4 +8,4 @@ dockerfile="./docker/distribution/generic/build.Dockerfile"
|
|||||||
echo "Building LIGO for $target"
|
echo "Building LIGO for $target"
|
||||||
echo "Using Dockerfile: $dockerfile"
|
echo "Using Dockerfile: $dockerfile"
|
||||||
echo "Tagging as: $tag_build\n"
|
echo "Tagging as: $tag_build\n"
|
||||||
docker build --build-arg target="$target" -t "$tag_build" -f "$dockerfile" .
|
docker build --build-arg ci_job_id="${CI_JOB_ID}" --build-arg target="$target" -t "$tag_build" -f "$dockerfile" .
|
||||||
|
@ -14,7 +14,8 @@ then
|
|||||||
m4 \
|
m4 \
|
||||||
libcap \
|
libcap \
|
||||||
bubblewrap \
|
bubblewrap \
|
||||||
rsync
|
rsync \
|
||||||
|
git
|
||||||
|
|
||||||
else
|
else
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
@ -27,5 +28,6 @@ else
|
|||||||
m4 \
|
m4 \
|
||||||
libcap-dev \
|
libcap-dev \
|
||||||
bubblewrap \
|
bubblewrap \
|
||||||
rsync
|
rsync \
|
||||||
|
git
|
||||||
fi
|
fi
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Install local dependencies
|
# Install local dependencies
|
||||||
opam install -y --deps-only --with-test $(find src vendors -name \*.opam)
|
opam install -y --deps-only --with-test ./ligo.opam $(find vendors -name \*.opam)
|
||||||
opam install -y $(find vendors -name \*.opam)
|
opam install -y $(find vendors -name \*.opam)
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
printf '' | opam switch create . ocaml-base-compiler.4.07.1 # toto ocaml-base-compiler.4.06.1
|
printf '' | opam switch create . ocaml-base-compiler.4.07.1 --no-install
|
||||||
eval $(opam config env)
|
eval $(opam config env)
|
||||||
|
Loading…
Reference in New Issue
Block a user