forked from nfdi4plants/DataHUB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (18 loc) · 779 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG VERSION=latest
FROM gitlab/gitlab-ee:$VERSION
# re-set VERSION as its cleared after a FROM directive
ARG VERSION
# copy static files
COPY templates/arc.tar.gz /opt/gitlab/embedded/service/gitlab-rails/vendor/project_templates/
COPY assets/dataplant-arc.png assets/house-solid.svg /opt/gitlab/embedded/service/gitlab-rails/public/assets/
COPY misc/datahub-hooks.bash /opt/gitlab/embedded/service/gitlab-rails/file_hooks/
COPY misc/Auto-DevOps.gitlab-ci.yml /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ci/templates/
# copy and execute the patch scripts
COPY scripts/${VERSION} /scripts
RUN /scripts/patch.sh
# create the datahub log folder
RUN mkdir -p /var/log/datahub
RUN chown git /var/log/datahub
# install jq
RUN apt-get update -y
RUN apt-get install jq -y