Merge pull request #1435 from eikek/docker-on-arm

Docker on arm
This commit is contained in:
mergify[bot] 2022-03-05 21:21:22 +00:00 committed by GitHub
commit 8cd3e5efdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -32,7 +32,7 @@ cd "$(dirname "$0")"
trap "{ docker buildx rm docspell-builder; }" EXIT
platforms="linux/amd64,linux/aarch64,linux/arm/v7"
platforms="linux/amd64,linux/arm64,linux/arm/v7"
docker buildx create --name docspell-builder --use
case $version in

View File

@ -5,10 +5,9 @@ ARG joex_url=
ARG UNO_URL=https://raw.githubusercontent.com/unoconv/unoconv/0.9.0/unoconv
ARG TARGETPLATFORM
ENV JAVA_OPTS="-Xmx1536M"
RUN JDKPKG="openjdk11"; \
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then JDKPKG="openjdk8"; fi; \
RUN JDKPKG="openjdk11-jre"; \
if [[ $TARGETPLATFORM = linux/arm* ]]; then JDKPKG="openjdk8-jre"; fi; \
apk update && \
apk add --no-cache $JDKPKG \
tzdata \
bash \

View File

@ -4,8 +4,9 @@ ARG version=
ARG restserver_url=
ARG TARGETPLATFORM
RUN JDKPKG="openjdk11"; \
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then JDKPKG="openjdk8"; fi; \
RUN JDKPKG="openjdk11-jre"; \
if [[ $TARGETPLATFORM = linux/arm* ]]; then JDKPKG="openjdk8-jre"; fi; \
apk update && \
apk add --no-cache $JDKPKG bash tzdata
WORKDIR /opt