[#ftl]
#
#  Copyright 2014-2015 by Cloudsoft Corporation Limited
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

FROM ubuntu:14.04
MAINTAINER Cloudsoft "brooklyn@cloudsoftcorp.com"

# CLOCKER_VERSION_BELOW
LABEL version="1.1.0"

# make sure the package repository is up to date
RUN ( echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" ; echo "deb http://archive.ubuntu.com/ubuntu trusty-updates main universe" ) > /etc/apt/sources.list
RUN apt-get update ; \
    apt-get clean

# install openjdk 1.7.1
RUN apt-get -y --force-yes install tzdata=2015a-0ubuntu0.14.04 ; \
    apt-get -y --force-yes install python2.7-minimal=2.7.3-0ubuntu3 ; \
    apt-get -y --force-yes install python-minimal=2.7.3-0ubuntu2 ; \
    apt-get -y install openjdk-7-jdk ; \
    apt-get clean ; \
    update-alternatives --display java

ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
