-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes for building OpenJ9 using docker (#1171)
* fixes for building OpenJ9 using docker * some shell script changes to avoid errors from `set -u` * separate the openj9 Dockerfile from the base dockerfile
- Loading branch information
1 parent
35397b3
commit 6c670c8
Showing
5 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
workspace/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM openjdk_container | ||
FROM ubuntu:16.04 | ||
|
||
MAINTAINER AdoptOpenJDK <[email protected]> | ||
|
||
|
@@ -21,26 +21,55 @@ RUN apt-get update \ | |
autoconf \ | ||
ccache \ | ||
cpio \ | ||
curl \ | ||
file \ | ||
g++-4.8 \ | ||
gcc-4.8 \ | ||
git \ | ||
gnupg2 \ | ||
libasound2-dev \ | ||
libcups2-dev \ | ||
libdwarf-dev \ | ||
libelf-dev \ | ||
libfontconfig \ | ||
libfontconfig1-dev \ | ||
libfreetype6-dev \ | ||
libnuma-dev \ | ||
libx11-dev \ | ||
libxext-dev \ | ||
libxrender-dev \ | ||
libxt-dev \ | ||
libxtst-dev \ | ||
make \ | ||
nasm \ | ||
openjdk-8-jdk \ | ||
pkg-config \ | ||
ssh \ | ||
unzip \ | ||
wget \ | ||
zip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Make sure build uses 4.8 | ||
RUN rm /usr/bin/gcc \ | ||
&& rm /usr/bin/g++ \ | ||
&& rm /usr/bin/c++ \ | ||
RUN rm -f /usr/bin/gcc \ | ||
&& rm -f /usr/bin/g++ \ | ||
&& rm -f /usr/bin/c++ \ | ||
&& ln -s /usr/bin/gcc-4.8 /usr/bin/gcc \ | ||
&& ln -s /usr/bin/g++-4.8 /usr/bin/g++ \ | ||
&& ln -s /usr/bin/g++-4.8 /usr/bin/c++ | ||
|
||
# Pick up build instructions | ||
RUN mkdir -p /openjdk/target | ||
|
||
COPY sbin /openjdk/sbin | ||
COPY workspace/config /openjdk/config | ||
COPY pipelines /openjdk/pipelines | ||
|
||
RUN mkdir -p /openjdk/build | ||
RUN useradd -ms /bin/bash build | ||
RUN chown -R build: /openjdk/ | ||
USER build | ||
WORKDIR /openjdk/build/ | ||
|
||
ARG OPENJDK_CORE_VERSION | ||
ENV OPENJDK_CORE_VERSION=$OPENJDK_CORE_VERSION | ||
ENV JDK_PATH=jdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters