Public Repository

Last pushed: a year ago
Short Description
Ubuntu image with scal, sbt and AWS CLI
Full Description

FROM ubuntu:16.04

ENV SCALA_VERSION 2.11.8
ENV SBT_VERSION 0.13.11

Amazon CLI

RUN apt-get update \
&& apt-get -y install curl wget zip python3 python3-pip jq software-properties-common python-software-properties \
&& pip3 install awscli awsebcli \
&& apt-get clean

Oracle JDK 8

RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections

RUN add-apt-repository -y ppa:webupd8team/java \
&& apt-get update \
&& apt-get install -y --no-install-recommends oracle-java8-installer \
&& apt-get clean
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle

Scala

RUN wget "http://www.scala-lang.org/files/archive/scala-$SCALA_VERSION.deb" \
&& dpkg -i "scala-$SCALA_VERSION.deb" \
&& rm "scala-$SCALA_VERSION.deb"

SBT

RUN wget "https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb" \
&& dpkg -i "sbt-$SBT_VERSION.deb" \
&& rm "sbt-$SBT_VERSION.deb" \
&& sbt reload

Postgres

RUN apt-get update \
&& apt-get -y install postgresql-contrib postgresql \
&& apt-get clean
RUN sed -i 's/peer/trust/' "$(find /etc/postgresql -name pg_hba.conf)"
RUN sed -i 's/md5/trust/' "$(find /etc/postgresql -name pg_hba.conf)"

Docker Pull Command
Owner
mscala