diff --git a/client/Dockerfiles/local/finance/archlinux/Dockerfile.root.in b/client/Dockerfiles/local/finance/archlinux/Dockerfile.root.in index adeeee4..d0bfd7e 100644 --- a/client/Dockerfiles/local/finance/archlinux/Dockerfile.root.in +++ b/client/Dockerfiles/local/finance/archlinux/Dockerfile.root.in @@ -1,6 +1,6 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC) +# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,9 +22,12 @@ USER root # ROOT.cern -RUN pacman -Syu \ - root \ - --noconfirm --disable-download-timeout +# https://hub.docker.com/r/evergreencrypto/root +COPY --from=evergreencrypto/root:archlinux /home/builder/root/root-6.36.04-6-x86_64.pkg.tar.zst /usr/local/src/ + +WORKDIR /usr/local/src +RUN pacman -Syu --noconfirm --disable-download-timeout +RUN pacman -U root-6.36.04-6-x86_64.pkg.tar.zst --noconfirm --disable-download-timeout # docker-finance RUN pacman -Syu \ diff --git a/client/Dockerfiles/remote/root/Dockerfile.archlinux b/client/Dockerfiles/remote/root/Dockerfile.archlinux new file mode 100644 index 0000000..9c01431 --- /dev/null +++ b/client/Dockerfiles/remote/root/Dockerfile.archlinux @@ -0,0 +1,77 @@ +# docker-finance | modern accounting for the power-user +# +# Copyright (C) 2025 Aaron Fiore (Founder, Evergreen Crypto LLC) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +FROM archlinux:base-devel + +RUN pacman -Syu \ + git \ + --noconfirm --disable-download-timeout + +RUN useradd -m -s /bin/bash -r builder +RUN gpasswd -a builder wheel +RUN sed -i 's/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers + +USER builder +WORKDIR /home/builder +RUN git clone --depth=1 https://gitlab.archlinux.org/archlinux/packaging/packages/root -b 6.36.04-6 + +WORKDIR /home/builder/root + +# +# CMake settings +# + +# Build with C++20 support +RUN sed -i -e 's/STANDARD 17/STANDARD 20/g' -e 's/c++17/c++20/g' settings.cmake + +# Disable TMVA +RUN sed -i -e 's/tmva ON/tmva OFF/' -e 's/tmva-cpu ON/tmva-cpu OFF/' -e 's/tmva-pymva ON/tmva-pymva OFF/' settings.cmake +# Disable Fortran +RUN sed -i -e 's/fortran ON/fortran OFF/' settings.cmake +# Disable GDML +RUN sed -i -e 's/gdml ON/gdml OFF/' settings.cmake +# Disable XRootD +RUN sed -i -e 's/xrootd ON/xrootd OFF/' settings.cmake +# Disable WebGUI (not HTTP server) +RUN sed -i -e 's/webgui ON/webgui OFF/' settings.cmake + +# Update final b2sum of settings.cmake +RUN sed -i 's/ef29766c708426631b50b4d63f036cd4dd0155201a6a7c3d8efe719eb749f41a48b45369ec76688ee3109c4ce118b041a8725a9ec88313e0aa43169f786e1b9d/a618e07bdb2ed24ad203e274bdfd578818e15450533ea0d3adfa52dae52c65be2d7ef92e708a5298b5c252c328aa52f2ab972aa1c51a910af7f44293a336e368/' PKGBUILD + +# +# PKGBUILD +# + +# Remove CUDA build +RUN sed -i 's/pkgname=(root root-cuda)/pkgname=(root)/' PKGBUILD +RUN sed -i -e '/build-cuda/d' -e '/package_root-cuda() {/,/}/{/.*/d}' PKGBUILD + +# Remove CUDA makedep +RUN sed -i -E -e '/^ cud(a|nn)$/d' PKGBUILD +# Remove Fortran makedep +RUN sed -i -e '/^ gcc-fortran$/d' PKGBUILD +# Remove XRootD makedep +RUN sed -i -e '/^ xrootd$/d' PKGBUILD +# Remove Chromium makedep (WebGUI) +RUN sed -i -e '/^ chromium$/d' PKGBUILD + +# Do not build root debug package +RUN sed -i "s/options=(\!lto)$/options=('\!debug' '\!lto')/" PKGBUILD + +RUN makepkg -sci --noconfirm + +# vim: sw=2 sts=2 si ai et diff --git a/client/Dockerfiles/remote/root/docker-compose.yml b/client/Dockerfiles/remote/root/docker-compose.yml new file mode 100644 index 0000000..fd0fc91 --- /dev/null +++ b/client/Dockerfiles/remote/root/docker-compose.yml @@ -0,0 +1,25 @@ +# docker-finance | modern accounting for the power-user +# +# Copyright (C) 2025 Aaron Fiore (Founder, Evergreen Crypto LLC) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +services: + archlinux: + image: evergreencrypto/root:archlinux + container_name: evergreencrypto_root_archlinux + build: + dockerfile: Dockerfile.archlinux + +# vim: sw=2 sts=2 si ai et