summaryrefslogtreecommitdiff
path: root/test/e2e/containers/git/Dockerfile
blob: 26c267fdc73e9421c0a8765d22609d67dc9dab34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM nginx:alpine

RUN set -x && \
  apk --update upgrade                                  &&  \
  apk add git git-daemon bash fcgiwrap spawn-fcgi wget             &&  \
  adduser git -h /var/lib/git -D                        &&  \
  adduser nginx git                                     &&  \
  git config --system http.receivepack true             &&  \
  git config --system http.uploadpack true              &&  \
  git config --system user.email "gitserver@git.com"    &&  \
  git config --system user.name "Git Server"            &&  \
  ln -sf /dev/stdout /var/log/nginx/access.log          &&  \
  ln -sf /dev/stderr /var/log/nginx/error.log


ADD ./etc /etc
ADD ./entrypoint.sh /usr/local/bin/entrypoint

ENTRYPOINT [ "entrypoint" ]
CMD [ "-start" ]

ADD ./testdata /var/lib/initial/testdata