Skip to content

Commit 56676c4

Browse files
authored
Merge pull request #669 from tarides/update-dockerfile
Update to newer Docker base image to have access to newer software versions
2 parents 3eb56e2 + 1cb7101 commit 56676c4

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

46
ADD . /home/opam/vpnkit
57
RUN opam pin add vpnkit /home/opam/vpnkit --kind=path -n
6-
RUN opam depext vpnkit -y
7-
88
RUN opam install vpnkit -y
99

1010
FROM alpine:latest

Dockerfile.test

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
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

46
ADD . /home/opam/vpnkit
57
RUN sudo chown opam:opam -R vpnkit
68
WORKDIR /home/opam/vpnkit
79
RUN opam pin add vpnkit /home/opam/vpnkit --kind=path -n
8-
RUN opam depext vpnkit -y
910

1011
RUN 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
1817
FROM scratch

0 commit comments

Comments
 (0)