-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JDK 21 Builds
- Loading branch information
Showing
3 changed files
with
147 additions
and
0 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
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,45 @@ | ||
FROM gatlingcorp/centos:6-gcc5 | ||
|
||
RUN rm -vf /usr/lib64/libstdc++.so.6.0.21-gdb.py | ||
|
||
RUN yum -y install \ | ||
git | ||
|
||
RUN export java_version=amazon-corretto@21.0.1 && \ | ||
export JAVA_VERSION=$java_version && \ | ||
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | JABBA_COMMAND="install 21.0.1-custom=tgz+https://corretto.aws/downloads/resources/21.0.1.12.1/amazon-corretto-21.0.1.12.1-linux-x64.tar.gz -o /jdk" bash && \ | ||
echo 'export JAVA_HOME="/jdk"' >> ~/.bashrc && \ | ||
echo 'PATH=/jdk/bin:$PATH' >> ~/.bashrc | ||
|
||
ENV JAVA_HOME "/jdk" | ||
ENV PATH "/jdk/bin:$PATH" | ||
|
||
RUN mkdir -p /workspace | ||
|
||
RUN mkdir -p /opt && \ | ||
cd /opt && \ | ||
wget --no-verbose https://maven-central.storage-download.googleapis.com/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.tar.gz && \ | ||
tar xzf apache-maven-3.8.6-bin.tar.gz && \ | ||
ln -s apache-maven-3.8.6 maven && \ | ||
ln -s /opt/maven/bin/mvn /usr/bin/mvn | ||
|
||
RUN cd /opt && \ | ||
wget --no-verbose https://github.com/Kitware/CMake/releases/download/v3.20.1/cmake-3.20.1-linux-x86_64.sh && \ | ||
chmod a+x cmake-3.20.1-linux-x86_64.sh && \ | ||
yes | ./cmake-3.20.1-linux-x86_64.sh | ||
|
||
ENV MAVEN_HOME "/opt/maven" | ||
ENV PATH "/opt/maven/bin:$PATH" | ||
ENV PATH "/opt/cmake-3.20.1-linux-x86_64/bin:$PATH" | ||
|
||
RUN mkdir /workspace/Brotli4j | ||
RUN cd /workspace/Brotli4j | ||
|
||
RUN echo "/jdk/lib/amd64" >> /etc/ld.so.conf | ||
RUN echo "/jdk/jre/lib/amd64/" >> /etc/ld.so.conf | ||
|
||
RUN ldconfig | ||
|
||
RUN echo "export MAVEN_HOME=/opt/maven" >> ~/.bashrc | ||
RUN echo "export PATH=/opt/maven/bin:\$PATH " >> ~/.bashrc | ||
RUN echo "export PATH=/opt/cmake-3.20.1-linux-x86_64/bin:\$PATH " >> ~/.bashrc |
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,25 @@ | ||
version: "3" | ||
|
||
services: | ||
|
||
runtime-setup: | ||
image: brotli4j:default | ||
build: | ||
context: . | ||
dockerfile: Dockerfile21.centos6 | ||
|
||
common: &common | ||
image: brotli4j:default | ||
depends_on: [ runtime-setup ] | ||
volumes: | ||
- ~/.m2:/root/.m2 | ||
- ..:/code | ||
working_dir: /code | ||
|
||
build: | ||
<<: *common | ||
command: /bin/bash -cl "mvn -B --show-version -ntp --file pom.xml clean package" | ||
|
||
shell: | ||
<<: *common | ||
entrypoint: /bin/bash |