]> xenbits.xensource.com Git - people/sstabellini/mojo.git/.git/commitdiff
Add support for rkt and stage1-xen in Dom0
authorStefano Stabellini <sstabellini@kernel.org>
Thu, 22 Feb 2018 01:12:05 +0000 (17:12 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 23 Feb 2018 01:57:27 +0000 (17:57 -0800)
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
alpine-dom0/rkt-builder/Dockerfile [new file with mode: 0644]
alpine-dom0/rkt-builder/build.yml [new file with mode: 0644]

diff --git a/alpine-dom0/rkt-builder/Dockerfile b/alpine-dom0/rkt-builder/Dockerfile
new file mode 100644 (file)
index 0000000..7feb4b3
--- /dev/null
@@ -0,0 +1,34 @@
+FROM FROM alpine:3.6 as rkt-builder
+
+ENV SOURCE_DIR=/root
+ENV OUT_DIR=/out
+ENV RKT_VERSION=v1.26.0
+
+RUN \
+    apk update && \
+# rkt dependencies
+    apk add git autoconf automake gcc patch musl-dev bash squashfs-tools acl-dev libacl grep gnupg file go make diffutils coreutils cpio gzip && \
+# stage1-xen dependencies
+    apk add bc jq linux-headers glide
+
+RUN \
+cd $SOURCE_DIR && \
+mkdir -p go/src/github.com/rkt && \
+export GOPATH=~/go && \
+cd go/src/github.com/rkt && \
+git clone https://github.com/coreos/rkt.git && \
+cd rkt && \
+git checkout -b my-$RKT_VERSION $RKT_VERSION && \
+./autogen.sh && \
+./configure --with-stage1-flavors=coreos,fly --disable-tpm --disable-sdjournal && \
+make -j "$(getconf _NPROCESSORS_ONLN)" && \
+mkdir -p $OUT_DIR/usr/bin && \
+cp ./build-rkt-1.29.0+git/target/bin/rkt $OUT_DIR/usr/bin && \
+cd .. && \
+git clone http://github.com/rkt/stage1-xen.git && \ 
+cd stage1-xen && \
+bash build.sh && \
+mkdir -p $OUT_DIR/usr/share/rkt && \
+cp stage1-xen.aci $OUT_DIR/usr/share/rkt
+
+ENTRYPOINT ["/bin/sh"]
diff --git a/alpine-dom0/rkt-builder/build.yml b/alpine-dom0/rkt-builder/build.yml
new file mode 100644 (file)
index 0000000..1650014
--- /dev/null
@@ -0,0 +1,3 @@
+image: rkt-builder
+org: mojoos
+network: yes