Merge pull request #237 into master

78ee492c client: Dockerfiles: local: root: use evergreencrypto/root image (Aaron Fiore)
7b67bcf1 client: Dockerfiles: remote: root: add evergreencrypto/root image (Aaron Fiore)
This commit is contained in:
2025-11-07 12:58:13 -08:00
3 changed files with 109 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# docker-finance | modern accounting for the power-user # 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 # 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 # it under the terms of the GNU General Public License as published by
@@ -22,9 +22,12 @@
USER root USER root
# ROOT.cern # ROOT.cern
RUN pacman -Syu \ # https://hub.docker.com/r/evergreencrypto/root
root \ COPY --from=evergreencrypto/root:archlinux /home/builder/root/root-6.36.04-6-x86_64.pkg.tar.zst /usr/local/src/
--noconfirm --disable-download-timeout
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 # docker-finance
RUN pacman -Syu \ RUN pacman -Syu \

View File

@@ -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 <https://www.gnu.org/licenses/>.
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

View File

@@ -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 <https://www.gnu.org/licenses/>.
services:
archlinux:
image: evergreencrypto/root:archlinux
container_name: evergreencrypto_root_archlinux
build:
dockerfile: Dockerfile.archlinux
# vim: sw=2 sts=2 si ai et