From 15e01e8e419d8049252d86d8146a635c23e9db57 Mon Sep 17 00:00:00 2001 From: Johnbush Date: Thu, 20 Dec 2018 11:40:16 +0530 Subject: [PATCH 1/2] removing RUN --- installscripts/dockerfiles/jenkins-ce/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installscripts/dockerfiles/jenkins-ce/Dockerfile b/installscripts/dockerfiles/jenkins-ce/Dockerfile index e414ba00..6c005cb9 100644 --- a/installscripts/dockerfiles/jenkins-ce/Dockerfile +++ b/installscripts/dockerfiles/jenkins-ce/Dockerfile @@ -12,7 +12,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash && apt-get install -y n # Install scripts for golang RUN curl -O https://storage.googleapis.com/golang/go${goVersion}.linux-amd64.tar.gz && tar -xvf go${goVersion}.linux-amd64.tar.gz && mv go /usr/local && \ echo 'export GOROOT=/usr/local/go' | sudo tee -a /etc/profile && echo 'export GOBIN=$GOROOT/bin' | sudo tee -a /etc/profile && echo 'export GOPATH=$GOROOT/src' | sudo tee -a /etc/profile && \ -echo 'export PATH=$PATH:$GOPATH:$GOBIN' | sudo tee -a /etc/profile && source /etc/profile && RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh +echo 'export PATH=$PATH:$GOPATH:$GOBIN' | sudo tee -a /etc/profile && source /etc/profile && curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh # Copying plugins list. Downlading and installing plugins from Jenkins PluginsManager COPY dockerfiles/jenkins-ce/plugins.txt /usr/share/jenkins/ref/plugins.txt From 7a21c9e1a0a789587809757063c28ae6c850c81b Mon Sep 17 00:00:00 2001 From: Johnbush Date: Thu, 20 Dec 2018 12:34:29 +0530 Subject: [PATCH 2/2] fix Path issues --- installscripts/dockerfiles/jenkins-ce/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/installscripts/dockerfiles/jenkins-ce/Dockerfile b/installscripts/dockerfiles/jenkins-ce/Dockerfile index 6c005cb9..13c5e91f 100644 --- a/installscripts/dockerfiles/jenkins-ce/Dockerfile +++ b/installscripts/dockerfiles/jenkins-ce/Dockerfile @@ -10,9 +10,12 @@ curl https://bootstrap.pypa.io/get-pip.py | python && pip install --upgrade awsc RUN wget -O /opt/apache-maven-3.5.2-bin.tar.gz https://archive.apache.org/dist/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz && tar xzvf /opt/apache-maven-3.5.2-bin.tar.gz -C /opt && export PATH=$PATH:/opt/apache-maven-3.5.2/bin >> /etc/profile.d/maven.sh && ln -sf /opt/apache-maven-3.5.2/bin/mvn /usr/bin/mvn RUN curl -sL https://deb.nodesource.com/setup_8.x | bash && apt-get install -y nodejs && npm install -global serverless@1.30.0 @angular/cli@1.7.3 jshint # Install scripts for golang -RUN curl -O https://storage.googleapis.com/golang/go${goVersion}.linux-amd64.tar.gz && tar -xvf go${goVersion}.linux-amd64.tar.gz && mv go /usr/local && \ -echo 'export GOROOT=/usr/local/go' | sudo tee -a /etc/profile && echo 'export GOBIN=$GOROOT/bin' | sudo tee -a /etc/profile && echo 'export GOPATH=$GOROOT/src' | sudo tee -a /etc/profile && \ -echo 'export PATH=$PATH:$GOPATH:$GOBIN' | sudo tee -a /etc/profile && source /etc/profile && curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh +RUN curl -O https://storage.googleapis.com/golang/go${goVersion}.linux-amd64.tar.gz && tar -xvf go${goVersion}.linux-amd64.tar.gz && mv go /usr/local +ENV GOROOT /usr/local/go +ENV GOBIN /usr/local/go/bin +ENV GOPATH /usr/local/go/src +ENV PATH $GOROOT:$GOBIN:$GOPATH:$PATH +RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh # Copying plugins list. Downlading and installing plugins from Jenkins PluginsManager COPY dockerfiles/jenkins-ce/plugins.txt /usr/share/jenkins/ref/plugins.txt