fix: satiate hadolint
Build Container Image / build_previous_amd64 (push) Successful in 7m34s
Details
Build Container Image / build_latest_amd64 (push) Successful in 6m14s
Details
Build Container Image / push_previous_amd64 (push) Successful in 1m32s
Details
Build Container Image / push_latest_amd64 (push) Successful in 1m27s
Details
Build Container Image / build_previous_arm64 (push) Successful in 21m59s
Details
Build Container Image / build_previous (push) Successful in 34s
Details
Build Container Image / push_previous_arm64 (push) Successful in 1m26s
Details
Build Container Image / push_previous (push) Successful in 26s
Details
Build Container Image / build_latest_arm64 (push) Successful in 21m23s
Details
Build Container Image / build_latest (push) Successful in 33s
Details
Build Container Image / push_latest_arm64 (push) Successful in 1m22s
Details
Build Container Image / push_latest (push) Successful in 1m3s
Details
Build Container Image / update_readme (push) Successful in 10s
Details
Build Container Image / build_previous_amd64 (push) Successful in 7m34s
Details
Build Container Image / build_latest_amd64 (push) Successful in 6m14s
Details
Build Container Image / push_previous_amd64 (push) Successful in 1m32s
Details
Build Container Image / push_latest_amd64 (push) Successful in 1m27s
Details
Build Container Image / build_previous_arm64 (push) Successful in 21m59s
Details
Build Container Image / build_previous (push) Successful in 34s
Details
Build Container Image / push_previous_arm64 (push) Successful in 1m26s
Details
Build Container Image / push_previous (push) Successful in 26s
Details
Build Container Image / build_latest_arm64 (push) Successful in 21m23s
Details
Build Container Image / build_latest (push) Successful in 33s
Details
Build Container Image / push_latest_arm64 (push) Successful in 1m22s
Details
Build Container Image / push_latest (push) Successful in 1m3s
Details
Build Container Image / update_readme (push) Successful in 10s
Details
This commit is contained in:
parent
593b763e38
commit
37512bd9c2
44
Dockerfile
44
Dockerfile
|
@ -5,9 +5,9 @@
|
|||
FROM almalinux:9
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
RUN echo "====== INSTALL BASE PACKAGES ======" \
|
||||
&& echo 'install_weak_deps=False' >>/etc/dnf/dnf.conf \
|
||||
&& dnf upgrade -y \
|
||||
# hadolint ignore=DL3041
|
||||
RUN echo 'install_weak_deps=False' >>/etc/dnf/dnf.conf \
|
||||
&& dnf upgrade -y \
|
||||
&& dnf -y install 'dnf-command(config-manager)' epel-release \
|
||||
&& dnf -y config-manager --set-enabled crb \
|
||||
&& dnf -y install --allowerasing curl-full \
|
||||
|
@ -17,8 +17,8 @@ RUN echo "====== INSTALL BASE PACKAGES ======" \
|
|||
&& dnf autoremove -y && dnf clean all \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
||||
&& dnf -y install \
|
||||
# hadolint ignore=DL3041
|
||||
RUN dnf -y install \
|
||||
autoconf automake binutils bison clang clang-tools-extra cmake flex gcc-c++ \
|
||||
glibc-devel libstdc++-devel libtool nasm ninja-build pkgconf rpmdevtools \
|
||||
rpmlint texinfo \
|
||||
|
@ -33,46 +33,46 @@ 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 ======" \
|
||||
&& dnf -y install pipx \
|
||||
# hadolint ignore=DL3013,DL3041
|
||||
RUN dnf -y install pipx \
|
||||
&& dnf autoremove -y && dnf clean all \
|
||||
&& pipx install cmakelang \
|
||||
&& pipx install reuse \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
ENV CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" GOPATH=/go
|
||||
RUN echo "====== INSTALL GOLANG PACKAGES ======" \
|
||||
&& dnf -y install golang \
|
||||
# hadolint ignore=DL3041
|
||||
RUN dnf -y install golang \
|
||||
&& dnf autoremove -y && dnf clean all \
|
||||
&& go install github.com/mdomke/git-semver/v6@latest \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
ENV PATH ${GOPATH}/bin:$PATH
|
||||
|
||||
RUN echo "====== INSTALL DOCUMENTATION PACKAGES ======" \
|
||||
&& dnf -y install \
|
||||
# hadolint ignore=DL3041
|
||||
RUN dnf -y install \
|
||||
ImageMagick doxygen-latex graphviz librsvg2-tools python3-jinja2 \
|
||||
python3-pygments \
|
||||
&& dnf autoremove -y && dnf clean all \
|
||||
&& git -C "${HOME}" clone --single-branch --depth=1 https://github.com/mosra/m.css && cd "${HOME}/m.css" \
|
||||
&& rm -rf documentation/test* \
|
||||
&& git -C "${HOME}" clone --single-branch --depth=1 https://github.com/mosra/m.css \
|
||||
&& rm -rf "${HOME}"/m.css/documentation/test* \
|
||||
&& mkdir /opt/m.css \
|
||||
&& mv documentation /opt/m.css/bin && mv COPYING /opt/m.css/ \
|
||||
&& mv css /opt/m.css/css && mv plugins /opt/m.css/plugins \
|
||||
&& cd .. && rm -rf /tmp/* /var/tmp/* "${HOME}/m.css"
|
||||
&& mv "${HOME}/m.css/documentation" /opt/m.css/bin && mv "${HOME}/m.css/COPYING" /opt/m.css/ \
|
||||
&& mv "${HOME}/m.css/css" /opt/m.css/css && mv "${HOME}/m.css/plugins" /opt/m.css/plugins \
|
||||
&& rm -rf /tmp/* /var/tmp/* "${HOME}/m.css"
|
||||
ENV PATH=/opt/m.css/bin:$PATH
|
||||
|
||||
RUN echo "====== NephNET Setup ======" \
|
||||
&& rpm --import https://code.nephatrine.net/api/packages/NephNET/rpm/repository.key \
|
||||
&& dnf config-manager --add-repo https://code.nephatrine.net/api/packages/NephNET/rpm.repo \
|
||||
RUN if curl --output /dev/null --silent --fail -r 0-0 "https://code.nephatrine.net/api/packages/NephNET/rpm/repodata/repomd.xml"; then echo "Installing NephNET" \
|
||||
&& rpm --import https://code.nephatrine.net/api/packages/NephNET/rpm/repository.key \
|
||||
&& dnf config-manager --add-repo https://code.nephatrine.net/api/packages/NephNET/rpm.repo; 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 \
|
||||
&& if [ "$(uname -m)" = "x86_64" ]; then mkdir /tmp/build-i686 && cd /tmp/build-i686 \
|
||||
&& nxbuild-linux-i686 -GNinja "${HOME}/hello-test" \
|
||||
&& ninja && ninja test; fi \
|
||||
&& cd /tmp && rm -rf /tmp/* /var/tmp/* "${HOME}/hello-test"
|
||||
&& cd .. && rm -rf /tmp/* /var/tmp/* "${HOME}/hello-test"
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
FROM almalinux:8
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
RUN echo "====== INSTALL BASE PACKAGES ======" \
|
||||
&& echo 'install_weak_deps=False' >>/etc/dnf/dnf.conf \
|
||||
&& dnf upgrade -y \
|
||||
# hadolint ignore=DL3041
|
||||
RUN echo 'install_weak_deps=False' >>/etc/dnf/dnf.conf \
|
||||
&& dnf upgrade -y \
|
||||
&& dnf -y install 'dnf-command(config-manager)' epel-release \
|
||||
&& dnf -y config-manager --set-enabled powertools \
|
||||
&& dnf -y install --allowerasing curl-full \
|
||||
|
@ -17,8 +17,8 @@ RUN echo "====== INSTALL BASE PACKAGES ======" \
|
|||
&& dnf autoremove -y && dnf clean all \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
||||
&& dnf -y install \
|
||||
# hadolint ignore=DL3041
|
||||
RUN dnf -y install \
|
||||
autoconf automake binutils bison clang clang-tools-extra cmake flex gcc-c++ \
|
||||
glibc-devel libstdc++-devel libtool nasm ninja-build pkgconf rpmdevtools \
|
||||
rpmlint texinfo \
|
||||
|
@ -32,46 +32,46 @@ RUN echo "====== INSTALL BUILD PACKAGES ======" \
|
|||
&& rpmdev-setuptree \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
RUN echo "====== INSTALL PYTHON PACKAGES ======" \
|
||||
&& dnf -y install python3-pip \
|
||||
# hadolint ignore=DL3013,DL3041
|
||||
RUN dnf -y install python3-pip \
|
||||
&& dnf autoremove -y && dnf clean all \
|
||||
&& pip3 install cmakelang \
|
||||
&& pip3 install reuse==1.0.0 \
|
||||
&& pip3 install --no-cache-dir cmakelang \
|
||||
&& pip3 install --no-cache-dir reuse==1.0.0 \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
ENV CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" GOPATH=/go
|
||||
RUN echo "====== INSTALL GOLANG PACKAGES ======" \
|
||||
&& dnf -y install golang \
|
||||
# hadolint ignore=DL3041
|
||||
RUN dnf -y install golang \
|
||||
&& dnf autoremove -y && dnf clean all \
|
||||
&& go install github.com/mdomke/git-semver/v6@latest \
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
ENV PATH ${GOPATH}/bin:$PATH
|
||||
|
||||
RUN echo "====== INSTALL DOCUMENTATION PACKAGES ======" \
|
||||
&& dnf -y install \
|
||||
# hadolint ignore=DL3041
|
||||
RUN dnf -y install \
|
||||
ImageMagick doxygen-latex graphviz librsvg2-tools python3-jinja2 \
|
||||
python3-pygments \
|
||||
&& dnf autoremove -y && dnf clean all \
|
||||
&& git -C "${HOME}" clone --single-branch --depth=1 https://github.com/mosra/m.css && cd "${HOME}/m.css" \
|
||||
&& rm -rf documentation/test* \
|
||||
&& git -C "${HOME}" clone --single-branch --depth=1 https://github.com/mosra/m.css \
|
||||
&& rm -rf "${HOME}"/m.css/documentation/test* \
|
||||
&& mkdir /opt/m.css \
|
||||
&& mv documentation /opt/m.css/bin && mv COPYING /opt/m.css/ \
|
||||
&& mv css /opt/m.css/css && mv plugins /opt/m.css/plugins \
|
||||
&& cd .. && rm -rf /tmp/* /var/tmp/* "${HOME}/m.css"
|
||||
&& mv "${HOME}/m.css/documentation" /opt/m.css/bin && mv "${HOME}/m.css/COPYING" /opt/m.css/ \
|
||||
&& mv "${HOME}/m.css/css" /opt/m.css/css && mv "${HOME}/m.css/plugins" /opt/m.css/plugins \
|
||||
&& rm -rf /tmp/* /var/tmp/* "${HOME}/m.css"
|
||||
ENV PATH=/opt/m.css/bin:$PATH
|
||||
|
||||
RUN echo "====== NephNET Setup ======" \
|
||||
&& rpm --import https://code.nephatrine.net/api/packages/NephNET/rpm/repository.key \
|
||||
&& dnf config-manager --add-repo https://code.nephatrine.net/api/packages/NephNET/rpm.repo \
|
||||
RUN if curl --output /dev/null --silent --fail -r 0-0 "https://code.nephatrine.net/api/packages/NephNET/rpm/repodata/repomd.xml"; then echo "Installing NephNET" \
|
||||
&& rpm --import https://code.nephatrine.net/api/packages/NephNET/rpm/repository.key \
|
||||
&& dnf config-manager --add-repo https://code.nephatrine.net/api/packages/NephNET/rpm.repo; 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 \
|
||||
&& if [ "$(uname -m)" = "x86_64" ]; then mkdir /tmp/build-i686 && cd /tmp/build-i686 \
|
||||
&& nxbuild-linux-i686 -GNinja "${HOME}/hello-test" \
|
||||
&& ninja && ninja test; fi \
|
||||
&& cd /tmp && rm -rf /tmp/* /var/tmp/* "${HOME}/hello-test"
|
||||
&& cd .. && rm -rf /tmp/* /var/tmp/* "${HOME}/hello-test"
|
||||
|
|
Loading…
Reference in New Issue