-
-
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.
Merge branch 'main' into pre-v1.13.0
- Loading branch information
Showing
18 changed files
with
850 additions
and
45 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 [email protected] && \ | ||
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
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,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 |
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,21 @@ | ||
#!/bin/sh | ||
|
||
CURPATH=$(pwd) | ||
TARGET_CLASSES_PATH="target/classes/lib/linux-ppc64le" | ||
TARGET_PATH="target" | ||
|
||
exitWithError() { | ||
cd ${CURPATH} | ||
echo "*** An error occurred. Please check log messages. ***" | ||
exit $1 | ||
} | ||
|
||
mkdir -p "$TARGET_CLASSES_PATH" | ||
|
||
cd "$TARGET_PATH" | ||
cmake ../../../ || exitWithError $? | ||
make || exitWithError $? | ||
rm -f "$CURPATH/${TARGET_CLASSES_PATH}/libbrotli.so" | ||
cp "./libbrotli.so" "$CURPATH/${TARGET_CLASSES_PATH}" || exitWithError $? | ||
|
||
cd "${CURPATH}" |
Oops, something went wrong.