forked from EvergreenCrypto/docker-finance
84 lines
2.8 KiB
Docker
84 lines
2.8 KiB
Docker
# 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
|
|
# Disable Qt6-WebEngine
|
|
RUN sed -i -e 's/qt6web ON/qt6web OFF/' settings.cmake
|
|
# Disable x11
|
|
RUN sed -i -e 's/x11 ON/x11 OFF/' settings.cmake
|
|
|
|
# Update final b2sum of settings.cmake
|
|
RUN sed -i 's/ef29766c708426631b50b4d63f036cd4dd0155201a6a7c3d8efe719eb749f41a48b45369ec76688ee3109c4ce118b041a8725a9ec88313e0aa43169f786e1b9d/55b4b4d8f7caddfe5b5d0e48e86dfa42dd2f092b2988b298a646e7dfe540192c8a9a7fcc4a14b46a6265764b0c242d3b7bdd40488e7ce960527710462d4f04a4/' 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
|
|
# Remove Qt6-WebEngine
|
|
RUN sed -i -e '/^ qt6-webengine$/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
|