forked from EvergreenCrypto/docker-finance
client: Dockerfiles: remote: root: add evergreencrypto/root image
Provides C++20 support and a slimmer package (~18% smaller).
This commit is contained in:
77
client/Dockerfiles/remote/root/Dockerfile.archlinux
Normal file
77
client/Dockerfiles/remote/root/Dockerfile.archlinux
Normal 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
|
||||
25
client/Dockerfiles/remote/root/docker-compose.yml
Normal file
25
client/Dockerfiles/remote/root/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user