client: create templated custom Dockerfiles

This commit is contained in:
2024-06-26 00:12:21 -07:00
parent 432a30c029
commit decef35be4
5 changed files with 122 additions and 21 deletions

View File

@@ -0,0 +1,33 @@
# docker-finance | modern accounting for the power-user
#
# Copyright (C) 2021-2024 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/>.
#
# Custom (optional) Dockerfile - appends to existing Dockerfile
#
USER root
RUN apt update -y
RUN apt install -y \
curl \
yq
USER @DOCKER_FINANCE_USER@
WORKDIR /home/@DOCKER_FINANCE_USER@
# vim: sw=2 sts=2 si ai et

View File

@@ -0,0 +1,44 @@
# docker-finance | modern accounting for the power-user
#
# Copyright (C) 2021-2024 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/>.
#
# Custom (optional) Dockerfile - appends to existing Dockerfile
#
#
# Optional userspace
#
USER root
RUN pacman -Syu \
calc \
emacs-nox \
less \
nano \
--noconfirm --disable-download-timeout
#
# Optional userspace (python / ROOT.cern custom metadata analysis)
#
USER @DOCKER_FINANCE_USER@
WORKDIR /home/@DOCKER_FINANCE_USER@
RUN pipx install xlsx2csv
# vim: sw=2 sts=2 si ai et

View File

@@ -0,0 +1,45 @@
# docker-finance | modern accounting for the power-user
#
# Copyright (C) 2021-2024 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/>.
#
# Custom (optional) Dockerfile - appends to existing Dockerfile
#
#
# Optional userspace
#
USER root
RUN apt update -y
RUN apt install -y \
calc \
emacs-nox \
mc \
nano
#
# Optional userspace (python)
#
USER @DOCKER_FINANCE_USER@
WORKDIR /home/@DOCKER_FINANCE_USER@
RUN pipx install xlsx2csv
# vim: sw=2 sts=2 si ai et