Compare commits

...

2 Commits

Author SHA1 Message Date
Dan Ballard b8c81f46fb all builds build 2024-03-04 23:38:09 -08:00
Dan Ballard 5c74ad8fc5 WIP fix attempt 2024-03-04 20:40:03 -08:00
2 changed files with 47 additions and 8 deletions

View File

@ -1,9 +1,9 @@
# Ubuntu 20.04 for that slightly older and more compat glibc
FROM eclipse-temurin:8-jdk-focal
# Debian Bullseye for that slightly older and more compat glibc
FROM debian:bullseye
# compile tools we need including for cross compiling to windows and arm8
# also ssl certs, ssh, and jq for deployment related tasks
# and set locale per adoptium jdk focale Dockerfile
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
@ -12,15 +12,54 @@ RUN set -eux; \
openssl \
libssl-dev \
git \
wget \
wget curl \
unzip \
netcat git wget libc6-dev make gcc g++ pkg-config g\+\+-mingw-w64 \
gcc-aarch64-linux-gnu \
jq openssh-client ca-certificates curl \
fontconfig \
netcat git wget libc6-dev make gcc g++ pkg-config \
jq openssh-client ca-certificates p11-kit tzdata locales \
g++-mingw-w64-x86-64 \
nsis \
wine \
wine64 \
; \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; \
locale-gen en_US.UTF-8; \
rm -rf /var/lib/apt/lists/*;
# https://github.com/adoptium/containers/blob/main/8/jdk/ubuntu/focal/Dockerfile
ENV JAVA_HOME /opt/java/openjdk
ENV PATH $JAVA_HOME/bin:$PATH
# Default to UTF-8 file.encoding
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV JAVA_VERSION jdk8u402-b06
RUN set -eux; \
ARCH="$(dpkg --print-architecture)"; \
ESUM='fcfd08abe39f18e719e391f2fc37b8ac1053075426d10efac4cbf8969e7aa55e'; \
BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u402-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u402b06.tar.gz'; \
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \
mkdir -p "$JAVA_HOME"; \
tar --extract \
--file /tmp/openjdk.tar.gz \
--directory "$JAVA_HOME" \
--strip-components 1 \
--no-same-owner \
; \
rm -f /tmp/openjdk.tar.gz ${JAVA_HOME}/lib/src.zip; \
# https://github.com/docker-library/openjdk/issues/331#issuecomment-498834472
find "$JAVA_HOME/lib" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf; \
ldconfig;
RUN set -eux; \
echo "Verifying install ..."; \
echo "javac -version"; javac -version; \
echo "java -version"; java -version; \
echo "Complete."
# Android section of this Dockerfile from https://medium.com/@elye.project/intro-to-docker-building-android-app-cb7fb1b97602
ENV SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip" \

View File

@ -8,7 +8,7 @@ Versions are:
- 2024.02
- Go 1.21.5
- glibc 2.31 from Ubuntu 20.04
- glibc 2.31 from Debian Bullseye
- Android API 31
- NDK 22.1.7171670
- arm8 gcc cross compiler