nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

Dockerfile (1166B)


      1 FROM alpine
      2 
      3 # Enable community repository to install libgit2
      4 # - https://wiki.alpinelinux.org/wiki/Repositories
      5 # - https://codemadness.org/git/stagit/file/README.html
      6 RUN sed -i 's/#\(http.*community\)$/\1/g' /etc/apk/repositories
      7 RUN apk update
      8 RUN apk add --no-cache apache2 apache2-utils apache2-ssl \
      9                        make gcc musl-dev mandoc \
     10                        libgit2-dev git-daemon git curl
     11 
     12 # Build and install stagit
     13 RUN git clone --depth=1 git://git.codemadness.org/stagit /opt/stagit
     14 COPY docker/favicon.png /opt/stagit/
     15 COPY docker/logo.png /opt/stagit/
     16 COPY docker/create.sh /opt/stagit/
     17 COPY docker/example_post-receive.sh /opt/stagit/
     18 COPY docker/*.patch /opt/stagit/
     19 
     20 # Patch header
     21 RUN git config --global user.email "docker@in0rdr.ch"
     22 RUN git config --global user.name "Docker build"
     23 RUN cd /opt/stagit && git am *.patch
     24 
     25 # Build stagit
     26 RUN cd /opt/stagit && make && make install
     27 
     28 # Prepare git repo and stagit volumes
     29 RUN mkdir -p /srv/git
     30 RUN mkdir -p /var/www/localhost/htdocs
     31 RUN chown -R apache: /var/www/localhost/htdocs/ /srv/git/
     32 VOLUME /srv/git
     33 VOLUME /var/www/localhost/htdocs
     34 
     35 EXPOSE 443/tcp
     36 
     37 CMD ["httpd", "-DFOREGROUND"]