Commit 98f62b9e authored by Kamil Trzciński's avatar Kamil Trzciński

Updated develop Dockerfile

parent 8763e634
# This image is used to create bleeding edge docker image and is not compatible with any other image
FROM golang:onbuild
FROM golang:1.4
# Copy sources
COPY . /go/src/
WORKDIR /go/src/
# Fetch tags (to have proper versioning)
RUN git fetch --tags || true
# Build development version
ENV BUILD_PLATFORMS -osarch=linux/amd64
RUN make && \
ln -s $(pwd)/out/binaries/gitlab-ci-multi-runner-linux-amd64 /usr/bin/gitlab-ci-multi-runner && \
ln -s $(pwd)/out/binaries/gitlab-ci-multi-runner-linux-amd64 /usr/bin/gitlab-runner
# Install runner
RUN /go/src/app/packaging/root/usr/share/gitlab-runner/post-install
RUN packaging/root/usr/share/gitlab-runner/post-install
# Preserve runner's data
VOLUME ["/etc/gitlab-runner", "/home/gitlab-runner"]
# init sets up the environment and launches gitlab-runner
ENTRYPOINT ["/go/src/app/dockerfiles/ubuntu/entrypoint"]
CMD ["run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner"]
ENTRYPOINT ["/usr/bin/gitlab-runner"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment