From: Stefano Stabellini Date: Thu, 22 Feb 2018 01:12:05 +0000 (-0800) Subject: Add support for rkt and stage1-xen in Dom0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=879d3e85287553de69c2ff97a341d508e6948296;p=people%2Fsstabellini%2Fmojo.git%2F.git Add support for rkt and stage1-xen in Dom0 Signed-off-by: Stefano Stabellini --- diff --git a/alpine-dom0/rkt-builder/Dockerfile b/alpine-dom0/rkt-builder/Dockerfile new file mode 100644 index 0000000..7feb4b3 --- /dev/null +++ b/alpine-dom0/rkt-builder/Dockerfile @@ -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 index 0000000..1650014 --- /dev/null +++ b/alpine-dom0/rkt-builder/build.yml @@ -0,0 +1,3 @@ +image: rkt-builder +org: mojoos +network: yes