mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-17 02:55:44 -04:00
Docker images for new architectures
- Fixes the release filename for arm64 and armv7 - Add new architectures for i386 and armv6
This commit is contained in:
parent
221055f49c
commit
d0f8226f50
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
@ -28,8 +28,10 @@ jobs:
|
|||||||
VERSION={tag}
|
VERSION={tag}
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm/v7
|
|
||||||
linux/arm64
|
linux/arm64
|
||||||
|
linux/arm/v7
|
||||||
|
linux/arm/v6
|
||||||
|
linux/386
|
||||||
restrict-to: kiwix/kiwix-tools
|
restrict-to: kiwix/kiwix-tools
|
||||||
manual-tag: ${{ github.event.inputs.version }}
|
manual-tag: ${{ github.event.inputs.version }}
|
||||||
repo_description: auto
|
repo_description: auto
|
||||||
@ -55,8 +57,10 @@ jobs:
|
|||||||
VERSION={tag}
|
VERSION={tag}
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm/v7
|
|
||||||
linux/arm64
|
linux/arm64
|
||||||
|
linux/arm/v7
|
||||||
|
linux/arm/v6
|
||||||
|
linux/386
|
||||||
restrict-to: kiwix/kiwix-tools
|
restrict-to: kiwix/kiwix-tools
|
||||||
manual-tag: ${{ github.event.inputs.version }}
|
manual-tag: ${{ github.event.inputs.version }}
|
||||||
repo_description: auto
|
repo_description: auto
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Unreleased
|
||||||
|
==========
|
||||||
|
|
||||||
|
* Additional docker images archs for armv6 and i386.
|
||||||
|
|
||||||
kiwix-tools 3.5.0
|
kiwix-tools 3.5.0
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
@ -1,12 +1,25 @@
|
|||||||
FROM alpine:3.16
|
FROM alpine:3.18
|
||||||
LABEL org.opencontainers.image.source https://github.com/openzim/kiwix-tools
|
LABEL org.opencontainers.image.source https://github.com/openzim/kiwix-tools
|
||||||
|
|
||||||
|
# TARGETPLATFORM is injected by docker build
|
||||||
|
ARG TARGETPLATFORM
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
RUN apk --no-cache add dumb-init curl && \
|
RUN set -e && \
|
||||||
ARCH=$(cat /etc/apk/arch) && \
|
apk --no-cache add dumb-init curl && \
|
||||||
if [ "$ARCH" = "x86" ]; then ARCH="i586"; \
|
echo "TARGETPLATFORM: $TARGETPLATFORM" && \
|
||||||
elif [ "$ARCH" = "aarch64" ]; then ARCH="armhf"; \
|
if [ "$TARGETPLATFORM" = "linux/386" ]; then ARCH="i586"; \
|
||||||
elif [ "$ARCH" = "armv7" ]; then ARCH="armhf"; fi && \
|
# linux/arm64/v8 points to linux/arm64
|
||||||
|
elif [ "$TARGETPLATFORM" = "linux/arm64/v8" \
|
||||||
|
-o "$TARGETPLATFORM" = "linux/arm64" ]; then ARCH="aarch64"; \
|
||||||
|
# linux/arm translates to linux/arm/v7
|
||||||
|
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then ARCH="armv8"; \
|
||||||
|
elif [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then ARCH="armv6"; \
|
||||||
|
elif [ "$TARGETPLATFORM" = "linux/amd64/v3" \
|
||||||
|
-o "$TARGETPLATFORM" = "linux/amd64/v2" \
|
||||||
|
-o "$TARGETPLATFORM" = "linux/amd64" ]; then ARCH="x86_64"; \
|
||||||
|
# we dont suppot any other arch so let it fail
|
||||||
|
else ARCH="unknown"; fi && \
|
||||||
# download requested kiwix-tools version
|
# download requested kiwix-tools version
|
||||||
url="http://mirror.download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-$ARCH-$VERSION.tar.gz" && \
|
url="http://mirror.download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-$ARCH-$VERSION.tar.gz" && \
|
||||||
echo "URL: $url" && \
|
echo "URL: $url" && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user