Public Repository

Last pushed: 2 years ago
Short Description
Ubuntu + Maven
Full Description

With this image, you will be able to run 'mvn' from the command line.

Built Dec 24 2014

Install Maven under /usr/share/apache-maven-3.2.5:

  1. Add MAVEN_HOME environment variable
  2. Add MAVEN_HOME/bin to PATH

Docker file:

# Use phusion/baseimage as base image. To make your builds
# reproducible, make sure you lock down to a specific version, not
# to `latest`! See
# https://github.com/phusion/baseimage-docker/blob/master/Changelog.md
# for a list of version numbers.
FROM phusion/baseimage:0.9.15

# Set correct environment variables.
ENV HOME /root

# Regenerate SSH host keys. baseimage-docker does not contain any, so you
# have to do that yourself. You may also comment out this instruction; the
# init system will auto-generate one during boot.
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh

# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]

# ...put your own build instructions here...
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9

# Get MAVEN
ENV MAVEN_VERSION apache-maven-3.2.5
ENV MAVEN_HOME /usr/share/$MAVEN_VERSION
ENV PATH $PATH:$MAVEN_HOME/bin

RUN curl -o /tmp/mvn http://mirrors.koehn.com/apache/maven/maven-3/3.2.5/binaries/$MAVEN_VERSION-bin.tar.gz
RUN tar -xzf /tmp/mvn
RUN mv $MAVEN_VERSION `dirname $MAVEN_HOME`

RUN apt-add-repository "deb http://repos.azulsystems.com/ubuntu $(lsb_release -cs) main"
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install zulu-8
RUN apt-get -y install git

# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Docker Pull Command
Owner
niftyinc

Comments (0)