From fbc76e969f885a24446435df2c38344452bba320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 12 May 2025 23:47:41 +0000 Subject: [PATCH] publishing --- .devcontainer/devcontainer.json | 3 ++- Dockerfile | 25 +++++++++++++++++++++++++ deploy/publish | 10 ++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100755 deploy/publish diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c19e730..1a8486e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -30,7 +30,8 @@ "vscode": { "extensions": [ "Gruntfuggly.todo-tree", - "mhutchie.git-graph" + "mhutchie.git-graph", + "timonwong.shellcheck" ] } }, diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aacd361 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM docker.io/ldericher/autodoc:0.8-diagram + +# install pdfa tools as per https://stackoverflow.com/a/39420880 +COPY --chown=root:root \ + deploy/pdfa \ + /opt/pdfa + +# install TeXoffice +COPY --chown=root:root \ + deploy/texoffice \ + /opt/texlive/texdir/texmf-dist/tex/latex/texoffice + +# install lenaisten directory +COPY --chown=root:root \ + src/lenaisten \ + /opt/lenaisten + +# install pandoc templates +COPY --chown=root:root \ + src/lev-protokoll.latex \ + /usr/local/share/pandoc/templates + +RUN set -ex; \ + # reindex TeXlive (installed TeXoffice) + /opt/texlive/texdir/bin/default/texconfig rehash; diff --git a/deploy/publish b/deploy/publish new file mode 100755 index 0000000..e3eb446 --- /dev/null +++ b/deploy/publish @@ -0,0 +1,10 @@ +#!/bin/sh + +script="$( readlink -f "${0}" )" +script_dir="$( dirname "${script}" )" + +docker buildx build \ + --pull --push \ + --tag "code.lenaisten.de/lenaisten/lev-templates:latest" \ + --platform "linux/amd64" \ + "${script_dir}/.."