Skip to content

Commit

Permalink
add gitlab-ce alpine/ubuntu runner with cert
Browse files Browse the repository at this point in the history
  • Loading branch information
johnko committed Sep 28, 2020
1 parent 6182072 commit 37accd0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/gitlab-ce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ test-new)
test-ssl)
docker-compose exec gitlab-runner curl -v https://gitlab.local/
docker-compose exec gitlab-ce curl -v https://gitlab.local/
docker build -f alpine.Dockerfile -t runner-alpine:latest .
docker build -f ubuntu.Dockerfile -t runner-ubuntu:latest .
docker run --rm --interactive --tty --network gitlab-ce_default runner-alpine:latest curl -v https://gitlab.local/
docker run --rm --interactive --tty --network gitlab-ce_default runner-ubuntu:latest curl -v https://gitlab.local/
;;
Expand Down
4 changes: 4 additions & 0 deletions docker-files/gitlab-ce/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM alpine:latest
RUN apk update && apk add ca-certificates curl && rm -rf /var/cache/apk/*
COPY ./gitlab-ce.pem /usr/local/share/ca-certificates/gitlab.local.crt
RUN update-ca-certificates
4 changes: 4 additions & 0 deletions docker-files/gitlab-ce/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ubuntu:latest
RUN apt-get update && apt-get install -y ca-certificates curl && rm -rf /var/cache/apt/*
COPY ./gitlab-ce.pem /usr/local/share/ca-certificates/gitlab.local.crt
RUN update-ca-certificates

0 comments on commit 37accd0

Please sign in to comment.