Add GitLab CI and sort Gemfile

The provision folder contains files required to build the Docker Image for the GitLab CI.
This commit is contained in:
Felix Auringer
2021-01-21 10:33:17 +01:00
committed by Sebastian Serth
parent ed4a68beba
commit 918d1265db
7 changed files with 215 additions and 23 deletions

16
provision/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
# This file does not build a image that contains a complete CodeOcean,
# it is merely the image to run the GitLab CI in.
FROM ubuntu-dind:latest
COPY provision/provision.docker.root.sh /tmp/provision.docker.root.sh
RUN chmod a+rx /tmp/provision.docker.root.sh
RUN /tmp/provision.docker.root.sh
COPY provision/provision.docker.user.sh /tmp/provision.docker.user.sh
COPY Gemfile /tmp/Gemfile
RUN chmod a+rx /tmp/provision.docker.user.sh
USER codeocean
RUN /tmp/provision.docker.user.sh
CMD ["/bin/bash", "--login"]