commit fb86044a4e23a898bb56e254a8039f8210e34268 Author: Jono Hill Date: Sun Jul 21 20:52:28 2019 +1200 Initial commit diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f4c3a6f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,4 @@ +include: + - project: jonohill/gitlab-templates + file: docker.yml + ref: 62a7636bf2b74ff39266a90528c4540d3276c1f6 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4b47b0e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM debian + +ENV BUILDX_VERSION=v0.2.2 + +# Install Docker and qemu +# TODO Use docker stable once it properly supports buildx +RUN apt-get update && apt-get install -y \ + apt-transport-https \ + ca-certificates \ + curl \ + gnupg2 \ + software-properties-common && \ + curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ + add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable test" && \ + apt-get update && apt-get install -y \ + docker-ce \ + docker-ce-cli \ + containerd.io \ + binfmt-support \ + qemu-user-static + +# Install buildx plugin +RUN mkdir -p ~/.docker/cli-plugins && \ + curl -L -o ~/.docker/cli-plugins/docker-buildx \ + https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64 && \ + chmod a+x ~/.docker/cli-plugins/docker-buildx