Skip to content

Commit

Permalink
Merge pull request #430 from Johnbush/feature/golang
Browse files Browse the repository at this point in the history
Followup PR for golang runtime support
  • Loading branch information
devsatishm authored Dec 20, 2018
2 parents a910b46 + 7a21c9e commit 98e7145
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions installscripts/dockerfiles/jenkins-ce/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && RUN 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
Expand Down

0 comments on commit 98e7145

Please sign in to comment.