Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 195b016

Browse files
committed
update Dockerfiles to opam2
Signed-off-by: Anil Madhavapeddy <[email protected]>
1 parent 4dd5989 commit 195b016

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM ocaml/opam-dev:alpine-3.5_ocaml-4.05.0
1+
FROM ocaml/opam:alpine
22
RUN sudo apk add --no-cache tzdata aspcud gmp-dev perl libev-dev m4
33

44
ENV OPAMERRLOGLEN=0 OPAMYES=1
55

66
RUN git -C /home/opam/opam-repository fetch origin && \
7-
git -C /home/opam/opam-repository reset 818ebb219 --hard && \
7+
git -C /home/opam/opam-repository reset da99aec5e0ecc83bd86926b620eff45b99c82c26 --hard && \
88
opam update -u
99

1010
RUN opam install alcotest lwt conf-libev inotify
1111

1212
COPY check-libev.ml /tmp/check-libev.ml
13-
RUN opam config exec -- ocaml /tmp/check-libev.ml
13+
RUN opam exec -- ocaml /tmp/check-libev.ml
1414

1515
# cache opam install of dependencies
1616

@@ -33,7 +33,7 @@ RUN opam install datakit -ytv
3333
RUN sudo cp $(opam config exec -- which datakit) /usr/bin/datakit && \
3434
sudo cp $(opam config exec -- which datakit-mount) /usr/bin/datakit-mount
3535

36-
FROM alpine:3.5
36+
FROM alpine:3.8
3737
RUN apk add --no-cache libev gmp tzdata ca-certificates git openssh-client bash
3838
EXPOSE 5640
3939
ENTRYPOINT ["/usr/bin/datakit"]

Dockerfile.bridge-local-git

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN opam update --dev && opam upgrade
88
RUN opam install datakit-bridge-local-git -tyv
99
RUN sudo cp $(opam config exec -- which datakit-bridge-local-git) /usr/bin/
1010

11-
FROM alpine:3.5
11+
FROM alpine:3.8
1212
RUN apk add --no-cache libev gmp tzdata ca-certificates
1313
ENTRYPOINT ["/usr/bin/datakit-bridge-local-git"]
1414
COPY --from=0 /usr/bin/datakit-bridge-local-git /usr/bin/datakit-bridge-local-git

Dockerfile.ci

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM ocaml/opam-dev:alpine-3.5_ocaml-4.05.0
1+
FROM ocaml/opam2:alpine
22
RUN sudo apk add --no-cache tzdata aspcud gmp-dev perl libev-dev m4
33

44
ENV OPAMERRLOGLEN=0 OPAMYES=1
55

66
RUN git -C /home/opam/opam-repository fetch origin && \
7-
git -C /home/opam/opam-repository reset 818ebb219 --hard && \
7+
git -C /home/opam/opam-repository reset da99aec5e0ecc83bd86926b620eff45b99c82c26 --hard && \
88
opam update -u
99

1010
RUN opam install alcotest lwt conf-libev inotify
1111

1212
COPY check-libev.ml /tmp/check-libev.ml
13-
RUN opam config exec -- ocaml /tmp/check-libev.ml
13+
RUN opam exec -- ocaml /tmp/check-libev.ml
1414

1515
# cache opam install of dependencies
1616

Dockerfile.client

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM ocaml/opam-dev:alpine-3.5_ocaml-4.05.0
1+
FROM ocaml/opam2:alpine
22
RUN sudo apk add --no-cache tzdata aspcud gmp-dev perl libev-dev m4
33

44
ENV OPAMERRLOGLEN=0 OPAMYES=1
55

66
RUN git -C /home/opam/opam-repository fetch origin && \
7-
git -C /home/opam/opam-repository reset 818ebb219 --hard && \
7+
git -C /home/opam/opam-repository reset da99aec5e0ecc83bd86926b620eff45b99c82c26 --hard && \
88
opam update -u
99

1010
RUN opam install alcotest lwt conf-libev inotify

Dockerfile.github

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM ocaml/opam-dev:alpine-3.5_ocaml-4.05.0
1+
FROM ocaml/opam2
22
RUN sudo apk add --no-cache tzdata aspcud gmp-dev perl libev-dev m4
33

44
ENV OPAMERRLOGLEN=0 OPAMYES=1
55

66
RUN git -C /home/opam/opam-repository fetch origin && \
7-
git -C /home/opam/opam-repository reset 818ebb219 --hard && \
7+
git -C /home/opam/opam-repository reset da99aec5e0ecc83bd86926b620eff45b99c82c26 --hard && \
88
opam update -u
99

1010
RUN opam install alcotest lwt conf-libev inotify tls
1111

1212
COPY check-libev.ml /tmp/check-libev.ml
13-
RUN opam config exec -- ocaml /tmp/check-libev.ml
13+
RUN opam exec -- ocaml /tmp/check-libev.ml
1414

1515
# cache opam install of dependencies
1616

@@ -32,7 +32,7 @@ RUN opam install datakit-bridge-github -ytv
3232

3333
RUN sudo cp $(opam config exec -- which datakit-bridge-github) /usr/bin/
3434

35-
FROM alpine:3.5
35+
FROM alpine:3.8
3636
RUN apk add --no-cache libev gmp tzdata ca-certificates
3737
EXPOSE 5640
3838
EXPOSE 5641

0 commit comments

Comments
 (0)