This commit is contained in:
parent
005ed35a63
commit
0fab0b2331
12
Dockerfile
12
Dockerfile
|
@ -1,10 +1,14 @@
|
|||
FROM ocaml/opam:ubuntu-20.04-ocaml-4.14 AS opam
|
||||
COPY mirage-unikernel-unipi-spt.opam /home/opam/opam-repository/packages/mirage-unikernel-unipi-spt/mirage-unikernel-unipi-spt.0.0.1~dev/opam
|
||||
RUN sudo apt update && opam update && opam depext mirage-unikernel-unipi-spt && opam install mirage-unikernel-unipi-spt
|
||||
RUN bindir="$(opam config var bin)"; cp $bindir/unipi.spt $bindir/solo5-elftool $bindir/solo5-spt .
|
||||
RUN sudo cp /usr/bin/opam-2.1 /usr/local/bin/opam
|
||||
RUN sudo apt update && opam update && \
|
||||
opam install 'mirage>4' && \
|
||||
eval $(opam env) && \
|
||||
git clone https://github.com/roburio/unipi.git && \
|
||||
( cd unipi && mirage configure -t spt && make ) && \
|
||||
{ bindir="$(opam var bin)"; cp $bindir/solo5-elftool $bindir/solo5-spt ~/; }
|
||||
|
||||
FROM ubuntu:20.04
|
||||
COPY --from=opam /home/opam/unipi.spt /unipi.spt
|
||||
COPY --from=opam /home/opam/unipi/dist/unipi.spt /unipi.spt
|
||||
COPY --from=opam /home/opam/solo5-elftool /home/opam/solo5-spt /usr/local/bin/
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN apt update && apt install -y iproute2
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
# Generated by _build/default/config.exe configure -t spt (2022-07-22 19:38:43-00:00).
|
||||
opam-version: "2.0"
|
||||
name: "mirage-unikernel-unipi-spt"
|
||||
depends: [ "arp" { >= "3.0.0" & < "4.0.0"}
|
||||
"awa"
|
||||
"awa-mirage"
|
||||
"ethernet" { >= "3.0.0" & < "4.0.0"}
|
||||
"functoria-runtime"
|
||||
"git" { >= "3.7.0"}
|
||||
"git-mirage" { >= "3.7.0" & < "3.8.0"}
|
||||
"git-paf" { >= "3.7.0"}
|
||||
"irmin-mirage-git" { >= "2.10.0" & < "3.0.0"}
|
||||
"letsencrypt" { >= "0.3.0"}
|
||||
"logs"
|
||||
"lwt"
|
||||
"magic-mime"
|
||||
"mimic"
|
||||
"mirage" {build & >= "3.10.0" & < "3.11.0"}
|
||||
"mirage-bootvar-solo5" { >= "0.6.0" & < "0.7.0"}
|
||||
"mirage-clock-freestanding" { >= "3.0.0" & < "5.0.0"}
|
||||
"mirage-crypto-rng-mirage" { >= "0.8.0" & < "0.11.0"}
|
||||
"mirage-logs" { >= "1.2.0" & < "2.0.0"}
|
||||
"mirage-net-solo5" { >= "0.6.1" & < "0.7.0"}
|
||||
"mirage-runtime" { >= "3.10.0" & < "3.11.0"}
|
||||
"mirage-solo5" { >= "0.6.1" & < "0.7.0"}
|
||||
"mirage-types" { >= "3.10.0" & < "3.11.0"}
|
||||
"mirage-types-lwt" { >= "3.10.0" & < "3.11.0"}
|
||||
"ocaml" {build & >= "4.08.0"}
|
||||
"ocamlbuild" {build}
|
||||
"ocamlfind" {build}
|
||||
"paf" { >= "0.0.8-1" & < "0.0.9"}
|
||||
"paf-le" { >= "0.0.8-1" & < "0.0.9"}
|
||||
"solo5-bindings-spt" { >= "0.6.0" & < "0.7.0"}
|
||||
"tcpip" { >= "7.0.0" & < "8.0.0"}
|
||||
"tls-mirage"
|
||||
]
|
||||
maintainer: "dummy"
|
||||
authors: "dummy"
|
||||
homepage: "dummy"
|
||||
bug-reports: "dummy"
|
||||
dev-repo: "git+https://example.com/nonexistent"
|
||||
build: [ "sh" "-exc" "mirage configure -t spt && mirage build" ]
|
||||
synopsis: "This is a dummy"
|
||||
install: [
|
||||
[ "cp" "unipi.spt" "%{bin}%/unipi.spt" ]
|
||||
]
|
||||
url { src: "git+https://github.com/roburio/unipi.git#main" }
|
Loading…
Reference in a new issue