You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by st...@apache.org on 2017/04/03 13:49:39 UTC

[2/2] maven-integration-testing git commit: Adding Solaris 11 as well as IBM and Azul JDKs

Adding Solaris 11 as well as IBM and Azul JDKs


Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/3d6822b1
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/3d6822b1
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/3d6822b1

Branch: refs/heads/master
Commit: 3d6822b15db4816fff8382d027b40c71bf2e2b06
Parents: 088fc9b
Author: Stephen Connolly <st...@gmail.com>
Authored: Mon Apr 3 14:49:33 2017 +0100
Committer: Stephen Connolly <st...@gmail.com>
Committed: Mon Apr 3 14:49:33 2017 +0100

----------------------------------------------------------------------
 environments/ibm-jdk8/Dockerfile                | 33 ++++++++++++++
 environments/solaris-11-jdk7/.gitignore         |  1 +
 environments/solaris-11-jdk7/Vagrantfile        | 46 ++++++++++++++++++++
 .../solaris-11-jdk7/apache-maven-3.3.9.patch    |  8 ++++
 environments/solaris-11-jdk8/.gitignore         |  1 +
 environments/solaris-11-jdk8/Vagrantfile        | 46 ++++++++++++++++++++
 .../solaris-11-jdk8/apache-maven-3.3.9.patch    |  8 ++++
 environments/zulu-jdk8/Dockerfile               | 34 +++++++++++++++
 8 files changed, 177 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/ibm-jdk8/Dockerfile
----------------------------------------------------------------------
diff --git a/environments/ibm-jdk8/Dockerfile b/environments/ibm-jdk8/Dockerfile
new file mode 100644
index 0000000..12e0028
--- /dev/null
+++ b/environments/ibm-jdk8/Dockerfile
@@ -0,0 +1,33 @@
+# 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 ibmjava:8-sdk
+
+RUN apt-get update &&\
+    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"

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/solaris-11-jdk7/.gitignore
----------------------------------------------------------------------
diff --git a/environments/solaris-11-jdk7/.gitignore b/environments/solaris-11-jdk7/.gitignore
new file mode 100644
index 0000000..a977916
--- /dev/null
+++ b/environments/solaris-11-jdk7/.gitignore
@@ -0,0 +1 @@
+.vagrant/

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/solaris-11-jdk7/Vagrantfile
----------------------------------------------------------------------
diff --git a/environments/solaris-11-jdk7/Vagrantfile b/environments/solaris-11-jdk7/Vagrantfile
new file mode 100644
index 0000000..245e3b6
--- /dev/null
+++ b/environments/solaris-11-jdk7/Vagrantfile
@@ -0,0 +1,46 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# 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.
+
+Vagrant.configure("2") do |config|
+  config.vm.box = "jonatasbaldin/solaris11"
+  #config.ssh.password = "v@grant"
+
+  config.vm.provider "virtualbox" do |v|
+    v.memory = 2048
+    v.cpus = 2
+  end
+
+  config.vm.provision "file", source:"apache-maven-3.3.9.patch", destination:"apache-maven-3.3.9.patch"
+  config.vm.provision "shell", inline: <<-SHELL
+    sudo sudo pkg install --accept jdk-7 git &&\
+    wget --no-check-certificate https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz &&\
+    gunzip -c apache-maven-3.3.9-bin.tar.gz | sudo sh -c "cd /opt; tar xf - " 2>&1 &&\
+    sudo patch -i apache-maven-3.3.9.patch /opt/apache-maven-3.3.9/bin/mvn &&\
+    sudo ln -s /opt/apache-maven-3.3.9/bin/mvn /usr/bin/mvn &&\
+    rm -rf apache-maven-3.3.9-bin.tar.gz apache-maven-3.3.9.patch &&\
+    sudo sh -c "echo JAVA_HOME=/usr/jdk/latest >> /etc/profile" &&\
+    sudo sh -c "echo export JAVA_HOME >> /etc/profile" &&\
+    sudo sh -c "echo MAVEN_HOME=/opt/apache-maven-3.3.9 >> /etc/profile" &&\
+    sudo sh -c "echo export MAVEN_HOME >> /etc/profile" &&\
+    sudo sh -c "echo PATH=${MAVEN_HOME}/bin:${PATH} >> /etc/profile" &&\
+    sudo sh -c "echo export PATH >> /etc/profile"
+  SHELL
+
+end

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/solaris-11-jdk7/apache-maven-3.3.9.patch
----------------------------------------------------------------------
diff --git a/environments/solaris-11-jdk7/apache-maven-3.3.9.patch b/environments/solaris-11-jdk7/apache-maven-3.3.9.patch
new file mode 100644
index 0000000..ae39c8b
--- /dev/null
+++ b/environments/solaris-11-jdk7/apache-maven-3.3.9.patch
@@ -0,0 +1,8 @@
+200,203c200,201
+<   local basedir
+<   local wdir
+<   basedir="$(pwd)"
+<   wdir="$(pwd)"
+---
+>   basedir=`pwd`
+>   wdir=`pwd`

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/solaris-11-jdk8/.gitignore
----------------------------------------------------------------------
diff --git a/environments/solaris-11-jdk8/.gitignore b/environments/solaris-11-jdk8/.gitignore
new file mode 100644
index 0000000..a977916
--- /dev/null
+++ b/environments/solaris-11-jdk8/.gitignore
@@ -0,0 +1 @@
+.vagrant/

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/solaris-11-jdk8/Vagrantfile
----------------------------------------------------------------------
diff --git a/environments/solaris-11-jdk8/Vagrantfile b/environments/solaris-11-jdk8/Vagrantfile
new file mode 100644
index 0000000..b8c535f
--- /dev/null
+++ b/environments/solaris-11-jdk8/Vagrantfile
@@ -0,0 +1,46 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# 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.
+
+Vagrant.configure("2") do |config|
+  config.vm.box = "jonatasbaldin/solaris11"
+  #config.ssh.password = "v@grant"
+
+  config.vm.provider "virtualbox" do |v|
+    v.memory = 2048
+    v.cpus = 2
+  end
+
+  config.vm.provision "file", source:"apache-maven-3.3.9.patch", destination:"apache-maven-3.3.9.patch"
+  config.vm.provision "shell", inline: <<-SHELL
+    sudo sudo pkg install --accept jdk-8 git &&\
+    wget --no-check-certificate https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz &&\
+    gunzip -c apache-maven-3.3.9-bin.tar.gz | sudo sh -c "cd /opt; tar xf - " 2>&1 &&\
+    sudo patch -i apache-maven-3.3.9.patch /opt/apache-maven-3.3.9/bin/mvn &&\
+    sudo ln -s /opt/apache-maven-3.3.9/bin/mvn /usr/bin/mvn &&\
+    rm -rf apache-maven-3.3.9-bin.tar.gz apache-maven-3.3.9.patch &&\
+    sudo sh -c "echo JAVA_HOME=/usr/jdk/latest >> /etc/profile" &&\
+    sudo sh -c "echo export JAVA_HOME >> /etc/profile" &&\
+    sudo sh -c "echo MAVEN_HOME=/opt/apache-maven-3.3.9 >> /etc/profile" &&\
+    sudo sh -c "echo export MAVEN_HOME >> /etc/profile" &&\
+    sudo sh -c "echo PATH=${MAVEN_HOME}/bin:${PATH} >> /etc/profile" &&\
+    sudo sh -c "echo export PATH >> /etc/profile"
+  SHELL
+
+end

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/solaris-11-jdk8/apache-maven-3.3.9.patch
----------------------------------------------------------------------
diff --git a/environments/solaris-11-jdk8/apache-maven-3.3.9.patch b/environments/solaris-11-jdk8/apache-maven-3.3.9.patch
new file mode 100644
index 0000000..ae39c8b
--- /dev/null
+++ b/environments/solaris-11-jdk8/apache-maven-3.3.9.patch
@@ -0,0 +1,8 @@
+200,203c200,201
+<   local basedir
+<   local wdir
+<   basedir="$(pwd)"
+<   wdir="$(pwd)"
+---
+>   basedir=`pwd`
+>   wdir=`pwd`

http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/3d6822b1/environments/zulu-jdk8/Dockerfile
----------------------------------------------------------------------
diff --git a/environments/zulu-jdk8/Dockerfile b/environments/zulu-jdk8/Dockerfile
new file mode 100644
index 0000000..557c0bb
--- /dev/null
+++ b/environments/zulu-jdk8/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:8
+
+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"