File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM ocaml/opam:alpine-3.19-ocaml-4.14 AS build
2- RUN opam update
1+ FROM ocaml/opam:alpine-3.23-ocaml-4.14 AS build
2+ RUN sudo ln -sf /usr/bin/opam-2.5 /usr/bin/opam && \
3+ opam init --reinit -ni
4+ RUN opam repo add archive git+https://github.com/ocaml/opam-repository-archive --all
35
46ADD . /home/opam/vpnkit
57RUN opam pin add vpnkit /home/opam/vpnkit --kind=path -n
6- RUN opam depext vpnkit -y
7-
88RUN opam install vpnkit -y
99
1010FROM alpine:latest
Original file line number Diff line number Diff line change 1- FROM ocaml/opam:alpine-3.19-ocaml-4.14 AS build
2- RUN opam update
1+ FROM ocaml/opam:alpine-3.23-ocaml-4.14 AS build
2+ RUN sudo ln -sf /usr/bin/opam-2.5 /usr/bin/opam && \
3+ opam init --reinit -ni
4+ RUN opam repo add archive git+https://github.com/ocaml/opam-repository-archive --all
35
46ADD . /home/opam/vpnkit
57RUN sudo chown opam:opam -R vpnkit
68WORKDIR /home/opam/vpnkit
79RUN opam pin add vpnkit /home/opam/vpnkit --kind=path -n
8- RUN opam depext vpnkit -y
910
1011RUN opam install vpnkit -y -t
1112
12- # unit tests
13- RUN opam exec -- dune runtest
14- # integration tests
15- RUN opam exec -- dune build @e2e
13+ # unit tests & integration tests
14+ RUN opam exec -- dune build @runtest @e2e
1615
1716# we're not interested in the intermediate artifacts
1817FROM scratch
You can’t perform that action at this time.
0 commit comments