|
@@ -3,10 +3,10 @@ FROM docker.io/alpine:3.20.1 AS borgmatic
|
|
|
COPY . /app
|
|
COPY . /app
|
|
|
RUN apk add --no-cache py3-pip py3-ruamel.yaml py3-ruamel.yaml.clib
|
|
RUN apk add --no-cache py3-pip py3-ruamel.yaml py3-ruamel.yaml.clib
|
|
|
RUN pip install --break-system-packages --no-cache /app && borgmatic config generate && borgmatic config generate --destination /etc/borgmatic --split && chmod +r /etc/borgmatic/*.yaml
|
|
RUN pip install --break-system-packages --no-cache /app && borgmatic config generate && borgmatic config generate --destination /etc/borgmatic --split && chmod +r /etc/borgmatic/*.yaml
|
|
|
-RUN borgmatic --help > /command-line.txt \
|
|
|
|
|
|
|
+RUN mkdir /command-line \
|
|
|
|
|
+ && borgmatic --help > /command-line/global.txt \
|
|
|
&& for action in repo-create transfer create prune compact check delete extract config "config bootstrap" "config generate" "config validate" export-tar mount umount repo-delete restore repo-list list repo-info info break-lock "key export" "key import" "key change-passphrase" recreate borg; do \
|
|
&& for action in repo-create transfer create prune compact check delete extract config "config bootstrap" "config generate" "config validate" export-tar mount umount repo-delete restore repo-list list repo-info info break-lock "key export" "key import" "key change-passphrase" recreate borg; do \
|
|
|
- echo -e "\n--------------------------------------------------------------------------------\n" >> /command-line.txt \
|
|
|
|
|
- && borgmatic $action --help >> /command-line.txt; done
|
|
|
|
|
|
|
+ borgmatic $action --help > /command-line/${action/ /-}.txt; done
|
|
|
RUN /app/docs/fetch-contributors >> /contributors.html
|
|
RUN /app/docs/fetch-contributors >> /contributors.html
|
|
|
|
|
|
|
|
FROM docker.io/node:22.4.0-alpine AS html
|
|
FROM docker.io/node:22.4.0-alpine AS html
|
|
@@ -24,7 +24,7 @@ RUN npm install @11ty/eleventy \
|
|
|
markdown-it-anchor \
|
|
markdown-it-anchor \
|
|
|
markdown-it-replace-link
|
|
markdown-it-replace-link
|
|
|
COPY --from=borgmatic /etc/borgmatic/* /source/docs/_includes/borgmatic/
|
|
COPY --from=borgmatic /etc/borgmatic/* /source/docs/_includes/borgmatic/
|
|
|
-COPY --from=borgmatic /command-line.txt /source/docs/_includes/borgmatic/command-line.txt
|
|
|
|
|
|
|
+COPY --from=borgmatic /command-line/* /source/docs/_includes/borgmatic/command-line/
|
|
|
COPY --from=borgmatic /contributors.html /source/docs/_includes/borgmatic/contributors.html
|
|
COPY --from=borgmatic /contributors.html /source/docs/_includes/borgmatic/contributors.html
|
|
|
COPY . /source
|
|
COPY . /source
|
|
|
RUN NODE_ENV=${ENVIRONMENT} npx eleventy --input=/source/docs --output=/output
|
|
RUN NODE_ENV=${ENVIRONMENT} npx eleventy --input=/source/docs --output=/output
|