fix: satiate hadolint
Build Container Image / build_previous_arm64 (push) Successful in 40s
Details
Build Container Image / build_previous_amd64 (push) Successful in 44s
Details
Build Container Image / build_latest_arm64 (push) Successful in 34s
Details
Build Container Image / build_previous_i386 (push) Successful in 38s
Details
Build Container Image / build_latest_armhf (push) Successful in 35s
Details
Build Container Image / build_edge_riscv64 (push) Successful in 1m51s
Details
Build Container Image / push_previous_amd64 (push) Successful in 35s
Details
Build Container Image / build_previous_armhf (push) Successful in 1m56s
Details
Build Container Image / build_edge_arm64 (push) Successful in 34s
Details
Build Container Image / push_previous_i386 (push) Successful in 36s
Details
Build Container Image / build_previous (push) Successful in 58s
Details
Build Container Image / build_edge_armhf (push) Successful in 1m5s
Details
Build Container Image / build_latest_golang_arm64 (push) Successful in 36s
Details
Build Container Image / push_previous_arm64 (push) Successful in 32s
Details
Build Container Image / push_previous_armhf (push) Successful in 32s
Details
Build Container Image / build_latest_golang_armhf (push) Successful in 1m1s
Details
Build Container Image / build_latest_amd64 (push) Successful in 38s
Details
Build Container Image / push_previous (push) Successful in 41s
Details
Build Container Image / build_latest_i386 (push) Successful in 37s
Details
Build Container Image / push_latest_amd64 (push) Successful in 8s
Details
Build Container Image / push_latest_i386 (push) Successful in 40s
Details
Build Container Image / build_combination (push) Successful in 46s
Details
Build Container Image / push_latest_arm64 (push) Successful in 36s
Details
Build Container Image / push_latest_armhf (push) Successful in 36s
Details
Build Container Image / build_latest (push) Successful in 2m2s
Details
Build Container Image / build_edge_amd64 (push) Successful in 39s
Details
Build Container Image / push_latest (push) Successful in 50s
Details
Build Container Image / build_edge_i386 (push) Successful in 37s
Details
Build Container Image / push_edge_amd64 (push) Successful in 35s
Details
Build Container Image / push_edge_i386 (push) Successful in 38s
Details
Build Container Image / build_edge (push) Successful in 1m17s
Details
Build Container Image / push_edge_arm64 (push) Successful in 37s
Details
Build Container Image / push_edge_armhf (push) Successful in 34s
Details
Build Container Image / push_edge_riscv64 (push) Successful in 34s
Details
Build Container Image / build_latest_golang_amd64 (push) Successful in 36s
Details
Build Container Image / push_combination (push) Successful in 58s
Details
Build Container Image / push_edge (push) Successful in 1m5s
Details
Build Container Image / build_latest_golang_i386 (push) Successful in 35s
Details
Build Container Image / update_readme (push) Successful in 6s
Details
Build Container Image / push_latest_golang_amd64 (push) Successful in 20s
Details
Build Container Image / push_latest_golang_i386 (push) Successful in 21s
Details
Build Container Image / push_latest_golang_arm64 (push) Successful in 21s
Details
Build Container Image / build_combination_golang (push) Successful in 1m15s
Details
Build Container Image / push_latest_golang_armhf (push) Successful in 21s
Details
Build Container Image / build_latest_golang (push) Successful in 1m30s
Details
Build Container Image / push_combination_golang (push) Successful in 1m3s
Details
Build Container Image / push_latest_golang (push) Successful in 1m42s
Details
Build Container Image / build_previous_arm64 (push) Successful in 40s
Details
Build Container Image / build_previous_amd64 (push) Successful in 44s
Details
Build Container Image / build_latest_arm64 (push) Successful in 34s
Details
Build Container Image / build_previous_i386 (push) Successful in 38s
Details
Build Container Image / build_latest_armhf (push) Successful in 35s
Details
Build Container Image / build_edge_riscv64 (push) Successful in 1m51s
Details
Build Container Image / push_previous_amd64 (push) Successful in 35s
Details
Build Container Image / build_previous_armhf (push) Successful in 1m56s
Details
Build Container Image / build_edge_arm64 (push) Successful in 34s
Details
Build Container Image / push_previous_i386 (push) Successful in 36s
Details
Build Container Image / build_previous (push) Successful in 58s
Details
Build Container Image / build_edge_armhf (push) Successful in 1m5s
Details
Build Container Image / build_latest_golang_arm64 (push) Successful in 36s
Details
Build Container Image / push_previous_arm64 (push) Successful in 32s
Details
Build Container Image / push_previous_armhf (push) Successful in 32s
Details
Build Container Image / build_latest_golang_armhf (push) Successful in 1m1s
Details
Build Container Image / build_latest_amd64 (push) Successful in 38s
Details
Build Container Image / push_previous (push) Successful in 41s
Details
Build Container Image / build_latest_i386 (push) Successful in 37s
Details
Build Container Image / push_latest_amd64 (push) Successful in 8s
Details
Build Container Image / push_latest_i386 (push) Successful in 40s
Details
Build Container Image / build_combination (push) Successful in 46s
Details
Build Container Image / push_latest_arm64 (push) Successful in 36s
Details
Build Container Image / push_latest_armhf (push) Successful in 36s
Details
Build Container Image / build_latest (push) Successful in 2m2s
Details
Build Container Image / build_edge_amd64 (push) Successful in 39s
Details
Build Container Image / push_latest (push) Successful in 50s
Details
Build Container Image / build_edge_i386 (push) Successful in 37s
Details
Build Container Image / push_edge_amd64 (push) Successful in 35s
Details
Build Container Image / push_edge_i386 (push) Successful in 38s
Details
Build Container Image / build_edge (push) Successful in 1m17s
Details
Build Container Image / push_edge_arm64 (push) Successful in 37s
Details
Build Container Image / push_edge_armhf (push) Successful in 34s
Details
Build Container Image / push_edge_riscv64 (push) Successful in 34s
Details
Build Container Image / build_latest_golang_amd64 (push) Successful in 36s
Details
Build Container Image / push_combination (push) Successful in 58s
Details
Build Container Image / push_edge (push) Successful in 1m5s
Details
Build Container Image / build_latest_golang_i386 (push) Successful in 35s
Details
Build Container Image / update_readme (push) Successful in 6s
Details
Build Container Image / push_latest_golang_amd64 (push) Successful in 20s
Details
Build Container Image / push_latest_golang_i386 (push) Successful in 21s
Details
Build Container Image / push_latest_golang_arm64 (push) Successful in 21s
Details
Build Container Image / build_combination_golang (push) Successful in 1m15s
Details
Build Container Image / push_latest_golang_armhf (push) Successful in 21s
Details
Build Container Image / build_latest_golang (push) Successful in 1m30s
Details
Build Container Image / push_combination_golang (push) Successful in 1m3s
Details
Build Container Image / push_latest_golang (push) Successful in 1m42s
Details
This commit is contained in:
parent
d8d7801d81
commit
197b960156
32
Dockerfile
32
Dockerfile
|
@ -5,8 +5,8 @@
|
|||
FROM alpine:3.19
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
RUN echo "====== INSTALL BASE PACKAGES ======" \
|
||||
&& apk --update upgrade \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk --update upgrade \
|
||||
&& apk add --no-cache \
|
||||
bash bzip2 ca-certificates curl gawk git git-lfs grep jq libarchive-tools \
|
||||
make npm p7zip shadow subversion unzip util-linux wget xz zip \
|
||||
|
@ -14,13 +14,15 @@ RUN echo "====== INSTALL BASE PACKAGES ======" \
|
|||
&& mkdir -p /home/builder \
|
||||
&& chown -R builder:users /home/builder \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
COPY override/usr/local/bin/uname /usr/local/bin/uname
|
||||
RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
||||
&& apk add --no-cache \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache \
|
||||
alpine-sdk autoconf automake bison build-base clang cmake flex libtool \
|
||||
linux-headers lld nasm ninja pkgconf texinfo \
|
||||
&& export LLVM_MAJOR="$(clang --version | grep -Eo 'version [0-9]+' | awk '{print $2}')" \
|
||||
&& LLVM_MAJOR="$(clang --version | grep -Eo 'version [0-9]+' | awk '{print $2}')" \
|
||||
&& export LLVM_MAJOR \
|
||||
&& apk add --no-cache "clang${LLVM_MAJOR}-extra-tools" \
|
||||
&& if [ ! "$(uname -m)" = "riscv64" ]; then apk add --no-cache binutils-gold; fi \
|
||||
&& apk add --no-cache \
|
||||
|
@ -32,27 +34,29 @@ RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
|||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
ENV PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin
|
||||
RUN echo "====== INSTALL PYTHON PACKAGES ======" \
|
||||
&& apk add --no-cache pipx reuse \
|
||||
# hadolint ignore=DL3013,DL3018
|
||||
RUN apk add --no-cache pipx reuse \
|
||||
&& pipx install cmakelang \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
ENV CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" GOPATH=/go
|
||||
RUN echo "====== INSTALL GOLANG PACKAGES ======" \
|
||||
&& apk add --no-cache go \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache go \
|
||||
&& go install github.com/mdomke/git-semver/v6@latest \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
ENV PATH ${GOPATH}/bin:$PATH
|
||||
|
||||
RUN echo "====== NephNET Setup ======" \
|
||||
&& export DISTRO_VERSION="$(cat /etc/apk/repositories | grep '/main' | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& cd /etc/apk/keys/ && curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& cd /tmp && wget --progress=dot:giga "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz" || true \
|
||||
&& if [ -e "/tmp/APKINDEX.tar.gz" ]; then echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
WORKDIR /etc/apk/keys
|
||||
RUN DISTRO_VERSION="$(grep '/main' /etc/apk/repositories | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& export DISTRO_VERSION \
|
||||
&& if curl --output /dev/null --silent --fail -r 0-0 "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz"; then echo "Installing NephNET" \
|
||||
&& curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
&& apk update; fi \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
COPY override /
|
||||
# hadolint ignore=DL3003
|
||||
RUN echo "====== TEST TOOLCHAINS ======" \
|
||||
&& git -C "${HOME}" clone --single-branch --depth=1 https://code.nephatrine.net/nephatrine/hello-test.git \
|
||||
&& mkdir "/tmp/build-$(uname -m)" && cd "/tmp/build-$(uname -m)" \
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
FROM alpine:edge
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
RUN echo "====== INSTALL BASE PACKAGES ======" \
|
||||
&& apk --update upgrade \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk --update upgrade \
|
||||
&& apk add --no-cache \
|
||||
bash bzip2 ca-certificates curl gawk git git-lfs grep jq libarchive-tools \
|
||||
make npm p7zip shadow subversion unzip util-linux wget xz zip \
|
||||
|
@ -14,13 +14,15 @@ RUN echo "====== INSTALL BASE PACKAGES ======" \
|
|||
&& mkdir -p /home/builder \
|
||||
&& chown -R builder:users /home/builder \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
COPY override/usr/local/bin/uname /usr/local/bin/uname
|
||||
RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
||||
&& apk add --no-cache \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache \
|
||||
alpine-sdk autoconf automake bison build-base clang cmake flex libtool \
|
||||
linux-headers lld nasm ninja pkgconf texinfo \
|
||||
&& export LLVM_MAJOR="$(clang --version | grep -Eo 'version [0-9]+' | awk '{print $2}')" \
|
||||
&& LLVM_MAJOR="$(clang --version | grep -Eo 'version [0-9]+' | awk '{print $2}')" \
|
||||
&& export LLVM_MAJOR \
|
||||
&& apk add --no-cache "clang${LLVM_MAJOR}-extra-tools" \
|
||||
&& if [ ! "$(uname -m)" = "riscv64" ]; then apk add --no-cache binutils-gold; fi \
|
||||
&& apk add --no-cache \
|
||||
|
@ -32,29 +34,30 @@ RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
|||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
ENV PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin
|
||||
RUN echo "====== INSTALL PYTHON PACKAGES ======" \
|
||||
&& apk add --no-cache pipx reuse \
|
||||
# hadolint ignore=DL3013,DL3018
|
||||
RUN apk add --no-cache pipx reuse \
|
||||
&& pipx install cmakelang \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
ENV CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" GOPATH=/go
|
||||
RUN echo "====== INSTALL GOLANG PACKAGES ======" \
|
||||
&& apk add --no-cache go \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache go \
|
||||
&& go install github.com/mdomke/git-semver/v6@latest \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
ENV PATH ${GOPATH}/bin:$PATH
|
||||
|
||||
RUN echo "====== NephNET Setup ======" \
|
||||
&& export DISTRO_VERSION="$(cat /etc/apk/repositories | grep '/main' | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& cd /etc/apk/keys/ && curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& cd /tmp && wget --progress=dot:giga "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz" || true \
|
||||
&& if [ -e "/tmp/APKINDEX.tar.gz" ]; then echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
WORKDIR /etc/apk/keys
|
||||
RUN DISTRO_VERSION="$(grep '/main' /etc/apk/repositories | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& export DISTRO_VERSION \
|
||||
&& if curl --output /dev/null --silent --fail -r 0-0 "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz"; then echo "Installing NephNET" \
|
||||
&& curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
&& apk update; fi \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
COPY override /
|
||||
RUN echo "====== TEST TOOLCHAINS ======" \
|
||||
&& git -C "${HOME}" clone --single-branch --depth=1 https://code.nephatrine.net/nephatrine/hello-test.git \
|
||||
# hadolint ignore=DL3003
|
||||
RUN git -C "${HOME}" clone --single-branch --depth=1 https://code.nephatrine.net/nephatrine/hello-test.git \
|
||||
&& mkdir "/tmp/build-$(uname -m)" && cd "/tmp/build-$(uname -m)" \
|
||||
&& "nxbuild-linux-$(uname -m)" -GNinja "${HOME}/hello-test" \
|
||||
&& ninja && ninja test \
|
||||
|
|
|
@ -1,26 +1,28 @@
|
|||
# SPDX-FileCopyrightText: 2024 Daniel Wolf <nephatrine@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2023 - 2024 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
FROM golang:alpine3.19
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
RUN echo "====== INSTALL BASE PACKAGES ======" \
|
||||
&& apk --update upgrade \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk --update upgrade \
|
||||
&& apk add --no-cache \
|
||||
bash bzip2 ca-certificates curl gawk git git-lfs grep jq libarchive-tools \
|
||||
make npm p7zip subversion unzip util-linux wget xz zip \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
||||
&& apk add --no-cache build-base \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache build-base \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
RUN echo "====== NephNET Setup ======" \
|
||||
&& export DISTRO_VERSION="$(cat /etc/apk/repositories | grep '/main' | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& cd /etc/apk/keys/ && curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& cd /tmp && wget --progress=dot:giga "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz" || true \
|
||||
&& if [ -e "/tmp/APKINDEX.tar.gz" ]; then echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
WORKDIR /etc/apk/keys
|
||||
RUN DISTRO_VERSION="$(grep '/main' /etc/apk/repositories | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& export DISTRO_VERSION \
|
||||
&& if curl --output /dev/null --silent --fail -r 0-0 "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz"; then echo "Installing NephNET" \
|
||||
&& curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
&& apk update; fi \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# SPDX-FileCopyrightText: 2024 Daniel Wolf <nephatrine@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2023 - 2024 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
FROM alpine:3.18
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
RUN echo "====== INSTALL BASE PACKAGES ======" \
|
||||
&& apk --update upgrade \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk --update upgrade \
|
||||
&& apk add --no-cache \
|
||||
bash bzip2 ca-certificates curl gawk git git-lfs grep jq libarchive-tools \
|
||||
make npm p7zip shadow subversion unzip util-linux wget xz zip \
|
||||
|
@ -14,13 +14,15 @@ RUN echo "====== INSTALL BASE PACKAGES ======" \
|
|||
&& mkdir -p /home/builder \
|
||||
&& chown -R builder:users /home/builder \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
COPY override/usr/local/bin/uname /usr/local/bin/uname
|
||||
RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
||||
&& apk add --no-cache \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache \
|
||||
alpine-sdk autoconf automake bison build-base clang cmake flex libtool \
|
||||
linux-headers lld nasm ninja pkgconf texinfo \
|
||||
&& export LLVM_MAJOR="$(clang --version | grep -Eo 'version [0-9]+' | awk '{print $2}')" \
|
||||
&& LLVM_MAJOR="$(clang --version | grep -Eo 'version [0-9]+' | awk '{print $2}')" \
|
||||
&& export LLVM_MAJOR \
|
||||
&& apk add --no-cache "clang${LLVM_MAJOR}-extra-tools" \
|
||||
&& if [ ! "$(uname -m)" = "riscv64" ]; then apk add --no-cache binutils-gold; fi \
|
||||
&& apk add --no-cache \
|
||||
|
@ -31,29 +33,30 @@ RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
|||
&& su - builder -c "abuild-keygen -a -n" \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
RUN echo "====== INSTALL PYTHON PACKAGES ======" \
|
||||
&& apk add --no-cache py3-pip reuse \
|
||||
&& pip install cmakelang \
|
||||
# hadolint ignore=DL3013,DL3018
|
||||
RUN apk add --no-cache py3-pip reuse \
|
||||
&& pip install --no-cache-dir cmakelang \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
ENV CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" GOPATH=/go
|
||||
RUN echo "====== INSTALL GOLANG PACKAGES ======" \
|
||||
&& apk add --no-cache go \
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache go \
|
||||
&& go install github.com/mdomke/git-semver/v6@latest \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
ENV PATH ${GOPATH}/bin:$PATH
|
||||
|
||||
RUN echo "====== NephNET Setup ======" \
|
||||
&& export DISTRO_VERSION="$(cat /etc/apk/repositories | grep '/main' | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& cd /etc/apk/keys/ && curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& cd /tmp && wget --progress=dot:giga "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz" || true \
|
||||
&& if [ -e "/tmp/APKINDEX.tar.gz" ]; then echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
WORKDIR /etc/apk/keys
|
||||
RUN DISTRO_VERSION="$(grep '/main' /etc/apk/repositories | tr '/' ' ' | awk '{print $(NF-1)}' | head -1)" \
|
||||
&& export DISTRO_VERSION \
|
||||
&& if curl --output /dev/null --silent --fail -r 0-0 "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main/$(cat /etc/apk/arch)/APKINDEX.tar.gz"; then echo "Installing NephNET" \
|
||||
&& curl -JO https://code.nephatrine.net/api/packages/NephNET/alpine/key \
|
||||
&& echo "https://code.nephatrine.net/api/packages/NephNET/alpine/${DISTRO_VERSION}/main" >>/etc/apk/repositories \
|
||||
&& apk update; fi \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
COPY override /
|
||||
RUN echo "====== TEST TOOLCHAINS ======" \
|
||||
&& git -C "${HOME}" clone --single-branch --depth=1 https://code.nephatrine.net/nephatrine/hello-test.git \
|
||||
# hadolint ignore=DL3003
|
||||
RUN git -C "${HOME}" clone --single-branch --depth=1 https://code.nephatrine.net/nephatrine/hello-test.git \
|
||||
&& mkdir "/tmp/build-$(uname -m)" && cd "/tmp/build-$(uname -m)" \
|
||||
&& "nxbuild-linux-$(uname -m)" -GNinja "${HOME}/hello-test" \
|
||||
&& ninja && ninja test \
|
||||
|
|
Loading…
Reference in New Issue