Skip to content

Commit 34d3726

Browse files
authored
Replace git submodules with published dependencies (#301)
* Replace git submodules with published dependencies Contributes to tarides/infrastructure#389 * Fix win_ver API Following the guidance at ocurrent/ocluster#254 (comment), lets us compile using the latest released version of ocluster. * Update opam hash
1 parent 80bcc56 commit 34d3726

15 files changed

+32
-68
lines changed

.gitmodules

Lines changed: 0 additions & 16 deletions
This file was deleted.

Dockerfile

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
1-
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:b716ae07fd6520cc80c71eb199239c73558732a3df313a6296a61999c8b44ab0 as build
1+
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:b716ae07fd6520cc80c71eb199239c73558732a3df313a6296a61999c8b44ab0 AS build
22
RUN sudo apt-get update && sudo apt-get install libev-dev capnproto graphviz m4 pkg-config libsqlite3-dev libgmp-dev libssl-dev libffi-dev -y --no-install-recommends
3-
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard 86cb2b7655a9e49f365e4037814df866fc115344 && opam update
4-
COPY --chown=opam \
5-
ocurrent/current.opam \
6-
ocurrent/current_web.opam \
7-
ocurrent/current_docker.opam \
8-
ocurrent/current_git.opam \
9-
ocurrent/current_github.opam \
10-
ocurrent/current_slack.opam \
11-
ocurrent/current_rpc.opam \
12-
/src/ocurrent/
13-
COPY --chown=opam \
14-
ocluster/*.opam \
15-
/src/ocluster/
3+
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard d910b0617a51ea90e4547db13a509962fc504f70 && opam update
4+
165
WORKDIR /src
17-
RUN opam pin add -yn current_docker.dev "./ocurrent" && \
18-
opam pin add -yn current_git.dev "./ocurrent" && \
19-
opam pin add -yn current_github.dev "./ocurrent" && \
20-
opam pin add -yn current.dev "./ocurrent" && \
21-
opam pin add -yn current_rpc.dev "./ocurrent" && \
22-
opam pin add -yn current_slack.dev "./ocurrent" && \
23-
opam pin add -yn current_web.dev "./ocurrent" && \
24-
opam pin add -yn current_ocluster.dev "./ocluster" && \
25-
opam pin add -yn ocluster-api.dev "./ocluster"
6+
# See https://github.com/ocurrent/ocaml-docs-ci/pull/177#issuecomment-2445338172
7+
RUN sudo chown opam:opam $(pwd)
8+
269
COPY --chown=opam base-images.opam /src/
2710
RUN opam install -y --deps-only .
2811
ADD --chown=opam . .

base-images.opam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ depends: [
1717
"lwt" {>= "5.6.1"}
1818
"logs"
1919
"fmt" {>= "0.8.7"}
20-
"current" {>= "0.6.4"}
20+
"current" {>= "0.6.6"}
2121
"current_git"
2222
"current_github"
2323
"current_docker"
24-
"current_ocluster"
24+
"current_ocluster" {>= "0.3.0"}
2525
"current_slack"
2626
"current_web"
2727
"current_rpc"
2828
"capnp-rpc-unix" {>= "1.2.3"}
2929
"cmdliner" {>= "1.1.1"}
3030
"dockerfile" {>= "8.2.3"}
3131
"dockerfile-opam" {>= "8.2.3"}
32-
"ocaml-version" {>= "3.6.1"}
32+
"ocaml-version" {>= "3.6.9"}
3333
"timedesc" {>= "3.0.0"}
3434
"odoc" {with-doc}
3535
]

builds.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10753,7 +10753,7 @@ fedora-41/arm64
1075310753
LABEL distro_style="rpm"
1075410754
RUN yum --version || dnf install -y yum
1075510755
RUN yum update -y
10756-
RUN yum group install -y "c-development" && yum clean packages
10756+
RUN yum groupinstall -y "C Development Tools and Libraries" && yum clean packages
1075710757
RUN yum install -y git patch unzip which tar curl xz libcap-devel openssl sudo bzip2 && yum clean packages
1075810758
RUN git config --global user.email "docker@example.com"
1075910759
RUN git config --global user.name "Docker"
@@ -10767,7 +10767,7 @@ fedora-41/arm64
1076710767
FROM fedora:41
1076810768
RUN yum --version || dnf install -y yum
1076910769
RUN yum update -y
10770-
RUN yum group install -y "c-development" && yum clean packages
10770+
RUN yum groupinstall -y "C Development Tools and Libraries" && yum clean packages
1077110771
RUN yum install -y sudo passwd bzip2 unzip patch rsync nano gcc-c++ git tar curl xz libX11-devel which m4 diffutils findutils bubblewrap && yum clean packages
1077210772
COPY --from=0 [ "/usr/bin/opam-2.0", "/usr/bin/opam-2.0" ]
1077310773
RUN ln /usr/bin/opam-2.0 /usr/bin/opam
@@ -10831,7 +10831,7 @@ fedora-41/amd64
1083110831
LABEL distro_style="rpm"
1083210832
RUN yum --version || dnf install -y yum
1083310833
RUN yum update -y
10834-
RUN yum group install -y "c-development" && yum clean packages
10834+
RUN yum groupinstall -y "C Development Tools and Libraries" && yum clean packages
1083510835
RUN yum install -y git patch unzip which tar curl xz libcap-devel openssl sudo bzip2 && yum clean packages
1083610836
RUN git config --global user.email "docker@example.com"
1083710837
RUN git config --global user.name "Docker"
@@ -10845,7 +10845,7 @@ fedora-41/amd64
1084510845
FROM fedora:41
1084610846
RUN yum --version || dnf install -y yum
1084710847
RUN yum update -y
10848-
RUN yum group install -y "c-development" && yum clean packages
10848+
RUN yum groupinstall -y "C Development Tools and Libraries" && yum clean packages
1084910849
RUN yum install -y sudo passwd bzip2 unzip patch rsync nano gcc-c++ git tar curl xz libX11-devel which m4 diffutils findutils bubblewrap && yum clean packages
1085010850
COPY --from=0 [ "/usr/bin/opam-2.0", "/usr/bin/opam-2.0" ]
1085110851
RUN ln /usr/bin/opam-2.0 /usr/bin/opam

dune

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
(dirs :standard \ var)
22

3-
(vendored_dirs ocaml-version ocaml-dockerfile ocurrent ocluster)
4-
53
(rule
64
(target builds.actual)
75
(action

dune-project

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
(lwt (>= 5.6.1))
2222
logs
2323
(fmt (>= 0.8.7))
24-
(current (>= 0.6.4))
24+
(current (>= 0.6.6))
2525
current_git
2626
current_github
2727
current_docker
28-
current_ocluster
28+
(current_ocluster (>= 0.3.0))
2929
current_slack
3030
current_web
3131
current_rpc
3232
(capnp-rpc-unix (>= 1.2.3))
3333
(cmdliner (>= 1.1.1))
3434
(dockerfile (>= 8.2.3))
3535
(dockerfile-opam (>= 8.2.3))
36-
(ocaml-version (>= 3.6.1))
36+
(ocaml-version (>= 3.6.9))
3737
(timedesc (>= 3.0.0))))

ocaml-dockerfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

ocaml-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

ocluster

Lines changed: 0 additions & 1 deletion
This file was deleted.

ocurrent

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)