Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Build riscv64 docker images
Browse files Browse the repository at this point in the history
Ubuntu focal is chosen as there are no docker images for bionic.
  • Loading branch information
olof-nord committed Mar 29, 2023
1 parent 7e309fc commit c0477a3
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
DIST: 'bionic'
- ARCH: 'x86_64'
DIST: 'bionic'
- ARCH: 'riscv64'
DIST: 'focal'

name: Build ${{ matrix.DIST }} (${{ matrix.ARCH }})
env:
Expand Down
58 changes: 58 additions & 0 deletions Dockerfile.focal-riscv64
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
FROM riscv64/ubuntu:focal

ENV ARCH=riscv64 DIST=focal

# inherited by build scripts
ARG VERBOSE=0

COPY /entrypoint-ubuntu.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
SHELL ["/entrypoint.sh", "bash", "-c"]

COPY ./install-deps-ubuntu.sh /
RUN bash -x /install-deps-ubuntu.sh

COPY ./install-cmake.sh /
RUN bash -x /install-cmake.sh

ARG DESKTOP_FILE_UTILS_VERSION=56d220dd679c7c3a8f995a41a27a7d6f3df49dea
COPY build-desktop-file-utils.sh /
RUN bash -x /build-desktop-file-utils.sh

ARG AUTOMAKE_VERSION=1.16.5
COPY build-automake.sh /
RUN bash -x /build-automake.sh

ARG LIBGPG_ERROR_VERSION=1.45
COPY build-libgpg-error.sh /
RUN bash -x /build-libgpg-error.sh

ARG LIBASSUAN_VERSION=2.5.5
COPY build-libassuan.sh /
RUN bash -x /build-libassuan.sh

ARG LIBGCRYPT_VERSION=1.10.1
COPY build-libgcrypt.sh /
RUN bash -x /build-libgcrypt.sh

ARG LIBKSBA_VERSION=1.6.0
COPY build-libksba.sh /
RUN bash -x /build-libksba.sh

ARG NPTH_VERSION=1.6
COPY build-npth.sh /
RUN bash -x /build-npth.sh

ARG GNUPG_VERSION=2.3.7
COPY build-gnupg.sh /
RUN bash -x /build-gnupg.sh

ARG GPGME_VERSION=1.17.1
COPY build-gpgme.sh /
RUN bash -x /build-gpgme.sh

# create unprivileged user for non-build-script use of this image
# build-in-docker.sh will likely not use this one, as it enforces the caller's uid inside the container
RUN adduser --system --group build
USER build

0 comments on commit c0477a3

Please sign in to comment.