brooklyn.entity.container.docker.ubuntu.UsesJavaDockerfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-clocker-docker Show documentation
Show all versions of brooklyn-clocker-docker Show documentation
Clocker Brooklyn entities and locations for Docker integration.
[#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.
#
# base ubuntu 14.04 with java
#
# VERSION 0.0.7
FROM ubuntu:14.04
MAINTAINER Cloudsoft "[email protected]"
# 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
# install openjdk 1.7.0
RUN apt-get -y --force-yes install tzdata=2015a-0ubuntu0.14.04
RUN apt-get -y --force-yes install python2.7-minimal=2.7.3-0ubuntu3
RUN apt-get -y --force-yes install python-minimal=2.7.3-0ubuntu2
RUN apt-get -y install openjdk-7-jdk && apt-get clean
RUN update-alternatives --display java
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64