Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
Try to reduce image size
Browse files Browse the repository at this point in the history
Ubuntu => Alpine
  • Loading branch information
sgillespie committed May 18, 2016
1 parent 674e380 commit 6577bc3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
FROM ubuntu
FROM alpine:latest
MAINTAINER Sean Gillespie <[email protected]>

# Install curl
RUN apt-get update && apt-get install -y curl
RUN apk update && apk add bash \
ca-certificates \
git \
openssl \
wget

# Add official gitlab repositories to APT
RUN curl \
-L "https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh" \
| bash
VOLUME /etc/gitlab-runner /home/gitlab-runner

# Install gitlab-runner
RUN apt-get install -y gitlab-ci-multi-runner

VOLUME /etc/gitlab-runner /home/gitlab
RUN adduser -h /home/gitlab-runner -s /bin/bash -D gitlab-runner
RUN wget -q -O /usr/local/bin/gitlab-ci-multi-runner \
https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-386 && \
chmod +x /usr/local/bin/gitlab-ci-multi-runner

# Add the entrypoint
ADD assets/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY assets/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["run", "--working-directory=/home/gitlab-runner", "--user=gitlab-runner"]
Empty file modified assets/entrypoint.sh
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
REGISTRATION_TOKEN: ${REGISTRATION_TOKEN}
RUNNER_EXECUTOR: docker
RUNNER_TAG_LIST: docker
image: sgillespie/gitlab-runner
network_mode: bridge
links:
- gitlab:gitlab
Expand Down

0 comments on commit 6577bc3

Please sign in to comment.