Skip to content

Commit

Permalink
#435 Fixing binaries builder (#492)
Browse files Browse the repository at this point in the history
* fixing arch image

* fixing linux image ref

* configuring static binary

* adjusting command

* setup musl

* adjusting building image

* adjusting building image

* adjusting building image

* fixing jdk url

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting build image

* adjusting building image

* adjusting building image

* adjusting building image

* adjusting building image

* setup aarch

* setup aarch

* setup aarch

* setup aarch

* setup aarch

* fixing amd64 builder

* fixing amd64 builder

* fixing amd64 builder

* fixing amd64 builder

* fixing aarch64 builder

* reverting ci

* clearing the code
  • Loading branch information
mageddo authored Jun 23, 2024
1 parent 771826b commit 099b1c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.builder.linux-aarch64
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM defreitas/tools_graalvm-21_debian-9_aarch64:0.0.1
# source: https://github.com/mageddo/dockerized-database-servers/tree/master/_hub/graalvm
FROM ghcr.io/graalvm/graalvm-community:22.0.1@sha256:fa702fdbfcf865a2a20bc48d933f877f75e9c1ff4d91bf68ad23e5b8dd39c2d5

WORKDIR /app/build
COPY ./build/artifacts/native-image-source/ /app/build
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile.builder.linux-amd64
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM defreitas/tools_graalvm-21_debian-9:0.0.1 AS BUILDER
# source: https://github.com/mageddo/dockerized-database-servers/tree/master/_hub/graalvm
FROM ghcr.io/graalvm/graalvm-community:21.0.2-ol9-20240116 AS BUILDER

COPY ./ /app
WORKDIR /app

RUN ./gradlew clean build compTest shadowJar nativeCompile -i &&\
ls -lha ./build &&\
echo "min required GLIBC version:" &&\
objdump -T /app/build/native/nativeCompile/dns-proxy-server | grep GLIBC | sed 's/.*GLIBC_\([.0-9]*\).*/\1/g' | sort -Vu | tail -n1 &&\
mkdir -p ./build/artifacts/linux-amd64 && mv ./build/native/nativeCompile/dns-proxy-server ./build/artifacts/linux-amd64/ &&\
mkdir -p ./build/artifacts/jre && mv ./build/libs/dns-proxy-server-*-all.jar ./build/artifacts/jre/dns-proxy-server.jar &&\
mkdir -p ./build/artifacts/native-image-source && cp ./build/artifacts/jre/dns-proxy-server.jar ./build/artifacts/native-image-source/ &&\
ls -lhS ./build/artifacts/*

ENTRYPOINT cat

0 comments on commit 099b1c4

Please sign in to comment.