-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* setup static binary for linux amd64 * generating release on pullrequest * [Gradle Release Plugin] - new version commit: '3.20.1-snapshot'. * release notes * [Gradle Release Plugin] - new version commit: '3.21.0-snapshot'. * setup docker image * fixing path * adjusting amd64 static building * adjusting amd64 static building * adjusting amd64 static building * adjusting amd64 static building * adjusting amd64 static building * upgrading running docker images * create tmp dir when it not exists * upgrading docker image * release notes * [Gradle Release Plugin] - new version commit: '3.21.1-snapshot'. * reverting feature * release notes * release notes * release notes * adjusting ci cd
- Loading branch information
Showing
11 changed files
with
131 additions
and
5 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
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,8 @@ | ||
FROM scratch | ||
COPY ./build/artifacts/linux-amd64-static/dns-proxy-server /app/dns-proxy-server | ||
WORKDIR /app | ||
LABEL dps.container=true | ||
ENV DPS_CONTAINER=1 | ||
VOLUME ["/var/run/docker.sock", "/var/run/docker.sock"] | ||
ENTRYPOINT ["/app/dns-proxy-server"] | ||
CMD ["-D", "java.io.tmpdir=/app"] |
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,43 @@ | ||
FROM debian:11 | ||
|
||
RUN apt-get update -y &&\ | ||
apt-get install --force-yes -y build-essential libz-dev zlib1g-dev curl | ||
|
||
ARG RESULT_LIB="/musl" | ||
|
||
RUN mkdir ${RESULT_LIB} && \ | ||
curl -L -o musl.tar.gz https://more.musl.cc/10.2.1/x86_64-linux-musl/x86_64-linux-musl-native.tgz && \ | ||
tar -xvzf musl.tar.gz -C musl --strip-components 1 && \ | ||
cp /usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.a ${RESULT_LIB}/lib/ | ||
|
||
ENV CC=/musl/bin/gcc | ||
|
||
RUN curl -L -o zlib.tar.gz https://www.zlib.net/fossils/zlib-1.2.11.tar.gz && \ | ||
mkdir zlib && tar -xvzf zlib.tar.gz -C zlib --strip-components 1 && \ | ||
cd zlib && ./configure --static --prefix=/musl && \ | ||
make && make install && \ | ||
cd / && rm -rf /zlib && rm -f /zlib.tar.gz | ||
|
||
ENV PATH="$PATH:/musl/bin" | ||
ENV GRAALVM_URL='https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-x64_bin.tar.gz' | ||
|
||
RUN mkdir /graalvm &&\ | ||
curl -L $GRAALVM_URL > /tmp/graalvm.tgz &&\ | ||
tar --strip 1 -zxvf /tmp/graalvm.tgz -C /graalvm &&\ | ||
rm -r /tmp/* || true | ||
|
||
ENV JAVA_HOME=/graalvm | ||
ENV PATH="${PATH}:$JAVA_HOME/bin" | ||
RUN uname -a && whoami && $JAVA_HOME/bin/java -version | ||
|
||
WORKDIR /app/build | ||
COPY ./build/artifacts/native-image-source/ /app/build | ||
|
||
RUN ls -lha &&\ | ||
native-image --static --libc=musl -jar dns-proxy-server.jar dns-proxy-server | ||
|
||
RUN ls -lhS &&\ | ||
mkdir -p ./artifacts/linux-amd64-static &&\ | ||
mv ./dns-proxy-server ./artifacts/linux-amd64-static/ | ||
|
||
ENTRYPOINT cat |
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 |
---|---|---|
|
@@ -122,6 +122,7 @@ graalvmNative { | |
verbose = true | ||
fallback = false | ||
buildArgs.add('-J-Xmx5G') | ||
|
||
} | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
version=3.20.0-snapshot | ||
version=3.21.1-snapshot |
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