diff --git a/jenkins/Dockerfile b/jenkins/Dockerfile index 83a3b8a..254ce57 100644 --- a/jenkins/Dockerfile +++ b/jenkins/Dockerfile @@ -1,17 +1,17 @@ FROM jenkins/jenkins:lts LABEL maintainer="apotwohd@gmail.com" -# Preps Jenkins directories USER root + +# Preps Jenkins directories RUN mkdir /var/log/jenkins RUN mkdir /var/cache/jenkins RUN chown -R jenkins:jenkins /var/log/jenkins RUN chown -R jenkins:jenkins /var/cache/jenkins -# Installs docker inside container -# ATENTION: version MUST be the same as host's docker installation! -# ARG VERSION=18.09 -# RUN curl -fsSL https://get.docker.com -o get-docker.sh | sh +# Installs tools needed when installing npm packages +RUN apt update +RUN apt install -y build-essential # Generates an SSH key-pair to use with Gitlab # TODO: replace placeholder email (note that this is not really necessary)