mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 00:33:08 +00:00
The new hiearchy is:
- pkg/{init,mirage-compile}: additional Moby packages
- src/sdk -> the begining of the MirageOS SDK for Moby
- src/dhcp-client -> the code for the MirageOS dhcp-client service
Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
20 lines
685 B
Docker
20 lines
685 B
Docker
FROM ocaml/opam:alpine-3.5_ocaml-4.04.0
|
|
RUN git -C /home/opam/opam-repository pull origin master && opam update -u
|
|
|
|
RUN opam pin -n add conduit https://github.com/samoht/ocaml-conduit.git#fd
|
|
RUN opam pin -n add mirage-net-unix https://github.com/samoht/mirage-net-unix.git#fd
|
|
|
|
RUN opam depext -iy mirage-net-unix logs-syslog irmin-unix cohttp decompress
|
|
RUN opam depext -iy rawlink tuntap.1.0.0 jbuilder irmin-watcher inotify
|
|
|
|
RUN sudo mkdir -p /src
|
|
COPY ./sdk /src/sdk
|
|
COPY ./dhcp-client /src/dhcp-client
|
|
RUN sudo chown opam -R /src
|
|
|
|
USER opam
|
|
WORKDIR /src
|
|
|
|
RUN opam config exec -- jbuilder build dhcp-client/main.exe
|
|
RUN sudo cp /src/_build/default/dhcp-client/main.exe /dhcp-client
|