From aa530c0eea1b2985dfa42e1b7eaa078fe64a261d Mon Sep 17 00:00:00 2001 From: Theodoros Grammenos Date: Sun, 12 Feb 2023 15:37:48 +0200 Subject: [PATCH] Add dockerfiles for aarch64 and armhf --- Dockerfile.aarch64 | 49 ++++++++++++++++++++++++++++++++++++++++++++++ Dockerfile.armhf | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 Dockerfile.aarch64 create mode 100644 Dockerfile.armhf diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 new file mode 100644 index 0000000..8729188 --- /dev/null +++ b/Dockerfile.aarch64 @@ -0,0 +1,49 @@ +FROM debian:bullseye + +ENV DEBIAN_FRONTEND noninteractive +ARG S6_OVERLAY_VERSION=3.1.3.0 +ARG S6_OVERLAY_ARCH="aarch64" +ARG KOHA_VERSION=22.11 + +LABEL org.opencontainers.image.source=https://github.com/teorgamm/koha-docker + +RUN apt-get update \ + && apt-get install -y \ + wget \ + apache2 \ + gnupg2 \ + apt-transport-https \ + xz-utils \ + && rm -rf /var/cache/apt/archives/* \ + && rm -rf /var/lib/apt/lists/* + +ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp +RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz +ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz /tmp +RUN tar -C / -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz + +RUN mkdir /etc/apt/keyrings/ && \ + wget -qO - https://debian.koha-community.org/koha/gpg.asc | gpg --dearmor -o /etc/apt/keyrings/koha.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/koha.gpg] https://debian.koha-community.org/koha ${KOHA_VERSION} main bullseye" | tee /etc/apt/sources.list.d/koha.list + +# Install Koha +RUN apt-get update \ + && apt-get install -y koha-core \ + idzebra-2.0 \ + apache2 libapache2-mpm-itk\ + && rm -rf /var/cache/apt/archives/* \ + && rm -rf /var/lib/apt/lists/* + +RUN a2enmod rewrite \ + && a2enmod headers \ + && a2enmod proxy_http \ + && a2enmod cgi \ + && a2dissite 000-default \ + && echo "Listen 8081\nListen 8080" > /etc/apache2/ports.conf + +COPY files/ / +WORKDIR /docker + +EXPOSE 2100 6001 8080 8081 + +CMD [ "/init" ] diff --git a/Dockerfile.armhf b/Dockerfile.armhf new file mode 100644 index 0000000..aecf018 --- /dev/null +++ b/Dockerfile.armhf @@ -0,0 +1,49 @@ +FROM debian:bullseye + +ENV DEBIAN_FRONTEND noninteractive +ARG S6_OVERLAY_VERSION=3.1.3.0 +ARG S6_OVERLAY_ARCH="armhf" +ARG KOHA_VERSION=22.11 + +LABEL org.opencontainers.image.source=https://github.com/teorgamm/koha-docker + +RUN apt-get update \ + && apt-get install -y \ + wget \ + apache2 \ + gnupg2 \ + apt-transport-https \ + xz-utils \ + && rm -rf /var/cache/apt/archives/* \ + && rm -rf /var/lib/apt/lists/* + +ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp +RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz +ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz /tmp +RUN tar -C / -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz + +RUN mkdir /etc/apt/keyrings/ && \ + wget -qO - https://debian.koha-community.org/koha/gpg.asc | gpg --dearmor -o /etc/apt/keyrings/koha.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/koha.gpg] https://debian.koha-community.org/koha ${KOHA_VERSION} main bullseye" | tee /etc/apt/sources.list.d/koha.list + +# Install Koha +RUN apt-get update \ + && apt-get install -y koha-core \ + idzebra-2.0 \ + apache2 libapache2-mpm-itk\ + && rm -rf /var/cache/apt/archives/* \ + && rm -rf /var/lib/apt/lists/* + +RUN a2enmod rewrite \ + && a2enmod headers \ + && a2enmod proxy_http \ + && a2enmod cgi \ + && a2dissite 000-default \ + && echo "Listen 8081\nListen 8080" > /etc/apache2/ports.conf + +COPY files/ / +WORKDIR /docker + +EXPOSE 2100 6001 8080 8081 + +CMD [ "/init" ]