Public Repository

Last pushed: 2 years ago
Short Description
Contains : Jenkins CI , ScalaLang , Sbt, Docker
Full Description

This image contains jenkins ci and scala sbt environments.

####Dockerfile Contents####

FROM java:7
MAINTAINER Peker Mert Oksuz pmoksuz@gmail.com

Scala

ENV SCALA_VERSION 2.11.6

Sbt

ENV SBT_VERSION 0.13.8

USER root
RUN apt-get update
RUN apt-get install -y sudo
RUN rm -rf /var/lib/apt/lists/*
RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
RUN apt-get install -y curl

Install Scala

RUN \
cd /root && \
curl -o scala-$SCALA_VERSION.tgz http://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz && \
tar -xf scala-$SCALA_VERSION.tgz && \
rm scala-$SCALA_VERSION.tgz && \
echo >> /root/.bashrc && \
echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc

Install sbt

RUN \
curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
dpkg -i sbt-$SBT_VERSION.deb && \
rm sbt-$SBT_VERSION.deb && \
apt-get update && \
apt-get install sbt

Install Docker from Docker Inc. repositories.

RUN curl -sSL https://get.docker.com/ubuntu/ | sh

Jenkins

RUN \
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - \
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' \
sudo apt-get update \
sudo apt-get install jenkins \

Docker Pull Command
Owner
pekermert

Comments (0)