Skip to content
Snippets Groups Projects
Commit 44ac4c7c authored by akwizgran's avatar akwizgran
Browse files

Merge branch 'java-11' into 'master'

Install default JDK to get Java 11

See merge request !9
parents 59dad170 354548b8
Branches
No related tags found
1 merge request!9Install default JDK to get Java 11
Pipeline #13354 passed
...@@ -30,14 +30,15 @@ test_success: ...@@ -30,14 +30,15 @@ test_success:
script: script:
# Consider adding the cap and the device directly to the CI config # Consider adding the cap and the device directly to the CI config
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-docker-section # https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-docker-section
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.2.10 # TODO replace alpha-1.4.3 with release version
- docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py alpha-1.4.3
except: except:
- triggers - triggers
test_failure: test_failure:
stage: test stage: test
script: script:
- if docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.0.13; then exit 1; else exit 0; fi - if docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.2.10; then exit 1; else exit 0; fi
except: except:
- triggers - triggers
... ...
......
FROM debian:buster FROM debian:bullseye-slim
ENV LANG=C.UTF-8 ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
... ...
......
...@@ -3,11 +3,11 @@ set -e ...@@ -3,11 +3,11 @@ set -e
set -x set -x
# Install Android SDK Manager # Install Android SDK Manager
wget --no-verbose -O tools.zip https://dl.google.com/android/repository/tools_r25.2.4-linux.zip wget --no-verbose -O cmdline-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip
unzip tools.zip unzip cmdline-tools.zip
rm tools.zip rm cmdline-tools.zip
mkdir ${ANDROID_HOME} mkdir -p ${ANDROID_HOME}/cmdline-tools
mv tools ${ANDROID_HOME}/ mv cmdline-tools ${ANDROID_HOME}/cmdline-tools/latest
# Accept all those nasty EULAs # Accept all those nasty EULAs
mkdir -p ${ANDROID_HOME}/licenses/ mkdir -p ${ANDROID_HOME}/licenses/
...@@ -18,4 +18,4 @@ printf "\n79120722343a6f314e0719f863036c702b0e6b2a\n84831b9409646a918e30573bab4c ...@@ -18,4 +18,4 @@ printf "\n79120722343a6f314e0719f863036c702b0e6b2a\n84831b9409646a918e30573bab4c
# Install platform-tools and ndk-bundle (for stripping libraries) # Install platform-tools and ndk-bundle (for stripping libraries)
mkdir /root/.android mkdir /root/.android
touch /root/.android/repositories.cfg touch /root/.android/repositories.cfg
echo y | $ANDROID_HOME/tools/bin/sdkmanager "platform-tools" "ndk-bundle" echo y | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platform-tools" "ndk-bundle"
...@@ -4,8 +4,9 @@ set -x ...@@ -4,8 +4,9 @@ set -x
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
git \ git \
openjdk-8-jdk-headless \ default-jdk-headless \
fuse \ fuse \
disorderfs \ disorderfs \
unzip \ unzip \
curl \
wget wget
...@@ -3,26 +3,26 @@ set -e ...@@ -3,26 +3,26 @@ set -e
set -x set -x
# use snapshot repos for deterministic package versions # use snapshot repos for deterministic package versions
DATE="20210312T000000Z" DATE="20211214T000000Z"
cat << EOF > /etc/apt/sources.list cat << EOF > /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/${DATE}/ buster main deb http://snapshot.debian.org/archive/debian/${DATE}/ bullseye main
deb http://snapshot.debian.org/archive/debian-security/${DATE}/ buster/updates main deb http://snapshot.debian.org/archive/debian-security/${DATE}/ bullseye-security main
EOF EOF
# ignore expired package releases (they expire too fast) # ignore expired package releases (they expire too fast)
echo 'Acquire::Check-Valid-Until "0";' >> /etc/apt/apt.conf.d/10-ignore-expiry echo 'Acquire::Check-Valid-Until "0";' >> /etc/apt/apt.conf.d/10-ignore-expiry
# allow OpenJDK 8 to be installed from the oldstable repo # do not install documentation to keep image small
echo "deb http://snapshot.debian.org/archive/debian/${DATE}/ stretch main" >> /etc/apt/sources.list echo "path-exclude=/usr/share/locale/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
echo "path-exclude=/usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
echo "path-exclude=/usr/share/doc/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
# update package sources # update package sources
apt-get update apt-get update
apt-get -y upgrade apt-get -y upgrade
# do not install documentation to keep image small # install of default-jdk-headless fails otherwise on *-slim image
echo "path-exclude=/usr/share/locale/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc mkdir -p /usr/share/man/man1
echo "path-exclude=/usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
echo "path-exclude=/usr/share/doc/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
# install dependencies # install dependencies
./install-dependencies.sh ./install-dependencies.sh
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment