Skip to content

Instantly share code, notes, and snippets.

@fritsstegmann
Created July 14, 2016 07:52
Show Gist options
  • Save fritsstegmann/5671f279e80e88332d1bb21a569293c6 to your computer and use it in GitHub Desktop.
Save fritsstegmann/5671f279e80e88332d1bb21a569293c6 to your computer and use it in GitHub Desktop.
FROM jenkinsci/jenkins
USER root
RUN curl -sL https://deb.nodesource.com/setup_0.12 | bash - \
&& apt-get install -y python-pip apt-utils curl git build-essential nodejs apt-transport-https ca-certificates \
&& apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D \
&& echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' > /etc/apt/sources.list.d/docker.list \
&& apt-get update \
&& apt-get install -y docker-engine \
&& pip install --upgrade pip docker-compose \
&& npm install -g bower gulp \
&& curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz \
&& tar -xvf go1.6.linux-amd64.tar.gz \
&& mv go /usr/local \
&& ln -s /usr/local/go/bin/go /usr/local/bin/go \
&& mkdir -p /golang \
&& apt-get install -y php5-cli
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === 'bf16ac69bd8b807bc6e4499b28968ee87456e29a3894767b60c2d4dafa3d10d045ffef2aeb2e78827fa5f024fbe93ca2') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
ENV GOROOT=/golang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment