Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker build support for Ubuntu 18.04 LTS #1826

Merged
merged 1 commit into from
May 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions buildenv/docker/jdk10/ppc64le/ubuntu18/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Copyright (c) 2018, 2018 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception

# To use this docker file:
# docker build -t=openj9-jdk10 .
# docker run --name=jdk10 -it openj9-jdk10

FROM ubuntu:18.04

# Install the required tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
autoconf \
ca-certificates \
ccache \
cmake \
cpio \
file \
g++-4.8 \
gcc-4.8 \
git \
libasound2-dev \
libcups2-dev \
libdwarf-dev \
libelf-dev \
libfontconfig1-dev \
libfreetype6-dev \
libnuma-dev \
libx11-dev \
libxext-dev \
libxrender-dev \
libxt-dev \
libxtst-dev \
make \
pkg-config \
software-properties-common \
ssh \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*

# Install optional tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
less \
vim \
&& rm -rf /var/lib/apt/lists/*

# Create links to the required compiler version.
RUN ln -s gcc-4.8 /usr/bin/cc \
&& ln -s gcc-4.8 /usr/bin/gcc \
&& ln -s g++-4.8 /usr/bin/c++ \
&& ln -s g++-4.8 /usr/bin/g++

# Download and unpack freemarker.
RUN cd /root \
&& wget https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download -O freemarker.tar.gz \
&& tar -xzf freemarker.tar.gz freemarker-2.3.8/lib/freemarker.jar --strip=2 \
&& rm -f freemarker.tar.gz

# Download the boot JDK from AdoptOpenJDK.
RUN cd /root \
&& wget https://api.adoptopenjdk.net/openjdk9-openj9/releases/ppc64le_linux/latest/binary -O bootjdk9.tar.gz \
&& tar -xzf bootjdk9.tar.gz \
&& rm -f bootjdk9.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk9

# Set JAVA_HOME, and prepend $JAVA_HOME/bin to PATH.
ENV JAVA_HOME=/root/bootjdk9
ENV PATH="$JAVA_HOME/bin:$PATH"

WORKDIR /root
89 changes: 89 additions & 0 deletions buildenv/docker/jdk10/s390x/ubuntu18/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Copyright (c) 2018, 2018 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception

# To use this docker file:
# docker build -t=openj9-jdk10 .
# docker run --name=jdk10 -it openj9-jdk10

FROM ubuntu:18.04

# Install the required tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
autoconf \
ca-certificates \
ccache \
cmake \
cpio \
file \
g++-4.8 \
gcc-4.8 \
git \
libasound2-dev \
libcups2-dev \
libdwarf-dev \
libelf-dev \
libfontconfig1-dev \
libfreetype6-dev \
libx11-dev \
libxext-dev \
libxrender-dev \
libxt-dev \
libxtst-dev \
make \
pkg-config \
software-properties-common \
ssh \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*

# Install optional tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
less \
vim \
&& rm -rf /var/lib/apt/lists/*

# Create links to the required compiler version.
RUN ln -s gcc-4.8 /usr/bin/cc \
&& ln -s gcc-4.8 /usr/bin/gcc \
&& ln -s g++-4.8 /usr/bin/c++ \
&& ln -s g++-4.8 /usr/bin/g++

# Download and unpack freemarker.
RUN cd /root \
&& wget https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download -O freemarker.tar.gz \
&& tar -xzf freemarker.tar.gz freemarker-2.3.8/lib/freemarker.jar --strip=2 \
&& rm -f freemarker.tar.gz

# Download the boot JDK from AdoptOpenJDK.
RUN cd /root \
&& wget https://api.adoptopenjdk.net/openjdk9-openj9/releases/s390x_linux/latest/binary -O bootjdk9.tar.gz \
&& tar -xzf bootjdk9.tar.gz \
&& rm -f bootjdk9.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk9

# Set JAVA_HOME, and prepend $JAVA_HOME/bin to PATH.
ENV JAVA_HOME=/root/bootjdk9
ENV PATH="$JAVA_HOME/bin:$PATH"

WORKDIR /root
90 changes: 90 additions & 0 deletions buildenv/docker/jdk10/x86_64/ubuntu18/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Copyright (c) 2018, 2018 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception

# To use this docker file:
# docker build -t=openj9-jdk10 .
# docker run --name=jdk10 -it openj9-jdk10

FROM ubuntu:18.04

# Install the required tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
autoconf \
ca-certificates \
ccache \
cmake \
cpio \
file \
g++-4.8 \
gcc-4.8 \
git \
libasound2-dev \
libcups2-dev \
libdwarf-dev \
libelf-dev \
libfontconfig1-dev \
libfreetype6-dev \
libnuma-dev \
libx11-dev \
libxext-dev \
libxrender-dev \
libxt-dev \
libxtst-dev \
make \
pkg-config \
software-properties-common \
ssh \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*

# Install optional tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
less \
vim \
&& rm -rf /var/lib/apt/lists/*

# Create links to the required compiler version.
RUN ln -s gcc-4.8 /usr/bin/cc \
&& ln -s gcc-4.8 /usr/bin/gcc \
&& ln -s g++-4.8 /usr/bin/c++ \
&& ln -s g++-4.8 /usr/bin/g++

# Download and unpack freemarker.
RUN cd /root \
&& wget https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download -O freemarker.tar.gz \
&& tar -xzf freemarker.tar.gz freemarker-2.3.8/lib/freemarker.jar --strip=2 \
&& rm -f freemarker.tar.gz

# Download the boot JDK from AdoptOpenJDK.
RUN cd /root \
&& wget https://api.adoptopenjdk.net/openjdk9-openj9/releases/x64_linux/latest/binary -O bootjdk9.tar.gz \
&& tar -xzf bootjdk9.tar.gz \
&& rm -f bootjdk9.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk9

# Set JAVA_HOME, and prepend $JAVA_HOME/bin to PATH.
ENV JAVA_HOME=/root/bootjdk9
ENV PATH="$JAVA_HOME/bin:$PATH"

WORKDIR /root
89 changes: 89 additions & 0 deletions buildenv/docker/jdk8/ppc64le/ubuntu18/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Copyright (c) 2017, 2018 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception

# To use this docker file:
# docker build -t=openj9-jdk8 .
# docker run --name=jdk8 -it openj9-jdk8

FROM ubuntu:18.04

# Install the required tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
autoconf \
ca-certificates \
ccache \
cmake \
cpio \
file \
g++-4.8 \
gcc-4.8 \
git \
libasound2-dev \
libcups2-dev \
libdwarf-dev \
libelf-dev \
libfreetype6-dev \
libnuma-dev \
libx11-dev \
libxext-dev \
libxrender-dev \
libxt-dev \
libxtst-dev \
make \
pkg-config \
software-properties-common \
ssh \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*

# Install optional tools.
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
less \
vim \
&& rm -rf /var/lib/apt/lists/*

# Create links to the required compiler version.
RUN ln -s gcc-4.8 /usr/bin/cc \
&& ln -s gcc-4.8 /usr/bin/gcc \
&& ln -s g++-4.8 /usr/bin/c++ \
&& ln -s g++-4.8 /usr/bin/g++

# Download and unpack freemarker.
RUN cd /root \
&& wget https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download -O freemarker.tar.gz \
&& tar -xzf freemarker.tar.gz freemarker-2.3.8/lib/freemarker.jar --strip=2 \
&& rm -f freemarker.tar.gz

# Download the boot JDK from AdoptOpenJDK.
RUN cd /root \
&& wget https://api.adoptopenjdk.net/openjdk8-openj9/releases/ppc64le_linux/latest/binary -O bootjdk8.tar.gz \
&& tar -xzf bootjdk8.tar.gz \
&& rm -f bootjdk8.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk8

# Set JAVA_HOME, and prepend $JAVA_HOME/bin to PATH.
ENV JAVA_HOME=/root/bootjdk8
ENV PATH="$JAVA_HOME/bin:$PATH"

WORKDIR /root
Loading