Skip to content

Commit

Permalink
Adding a Zulu JDK 7 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Sep 11, 2017
1 parent 2233f42 commit a08d65b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions environments/zulu-jdk7/Dockerfile
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 azul/zulu-openjdk:7

RUN apt-get update &&\
apt-get upgrade -y ca-certificates &&\
apt-get install -y --no-install-recommends git curl &&\
rm -rf /var/lib/apt/lists/*

ARG MAVEN_VERSION=3.3.9
ARG USER_HOME_DIR="/root"

RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
&& curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \
| tar -xzC /usr/share/maven --strip-components=1 \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn

ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"

0 comments on commit a08d65b

Please sign in to comment.