Docker image should be smaller..
At the moment the docker image require whole "548.3 MB". Which is a kind of overkill. We need somehow to make the image smaller.
I tried creating a Docker image with Alpine Linux as base which only require "56.74 MB" 10x smaller.
FROM alpine:latest
RUN apk add --update docker bash go mercurial && \
export GOPATH="/tmp" && \
go get "gitlab.com/gitlab-org/gitlab-ci-multi-runner" && \
go build "gitlab.com/gitlab-org/gitlab-ci-multi-runner" && \
mv "gitlab-ci-multi-runner" "/usr/bin/gitlab-ci-multi-runner" && \
mv "/tmp/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/packaging/docker/init" "/usr/bin/gitlab-ci-multi-runner.init" && \
apk del --purge go mercurial && \
rm -rf /var/cache/apk/* /tmp/*
WORKDIR /data
VOLUME /data
# init sets up the environment and launches gitlab-ci-multi-runner
ENTRYPOINT ["/usr/bin/gitlab-ci-multi-runner.init"]
CMD ["run"]
I also stumbled upon https://github.com/CenturyLinkLabs/golang-builder , but we need to figure something out.