mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
miragesdk: fix compilation of the dhcp-client image
Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
This commit is contained in:
parent
faa9e1811d
commit
d4db6c65a1
@ -6,6 +6,7 @@ RUN opam pin -n add mirage-net-unix https://github.com/samoht/mirage-net-unix.gi
|
||||
|
||||
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 opam install rresult
|
||||
|
||||
RUN sudo mkdir -p /src
|
||||
COPY ./sdk /src/sdk
|
||||
@ -15,5 +16,7 @@ RUN sudo chown opam -R /src
|
||||
USER opam
|
||||
WORKDIR /src
|
||||
|
||||
RUN opam pin add cstruct --dev # for ppx/jbuilder
|
||||
|
||||
RUN opam config exec -- jbuilder build dhcp-client/main.exe
|
||||
RUN sudo cp /src/_build/default/dhcp-client/main.exe /dhcp-client
|
||||
|
@ -52,7 +52,7 @@ let run () cmd ethif path =
|
||||
] in
|
||||
Ctl.v "/data" >>= fun ctl ->
|
||||
let fd = Init.(Fd.fd @@ Pipe.(priv ctl)) in
|
||||
let ctl () = Ctl.serve ~routes ctl fd in
|
||||
let ctl () = Ctl.Server.listen ~routes ctl fd in
|
||||
let handlers () = Handlers.watch path in
|
||||
Init.run ~net ~ctl ~handlers cmd
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user