Initial commit

This commit is contained in:
Jono Hill
2019-07-21 20:52:28 +12:00
commit fb86044a4e
2 changed files with 30 additions and 0 deletions

4
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,4 @@
include:
- project: jonohill/gitlab-templates
file: docker.yml
ref: 62a7636bf2b74ff39266a90528c4540d3276c1f6

26
Dockerfile Normal file
View File

@ -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