From 3ff18d1042fe793d51a99390ddb27ba659aaf54e Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 11 Jul 2024 20:26:58 -0500 Subject: [PATCH] container: Add secretsocket, chase2fa scripts While the original intent of the `secretsocket` script was to have `rbw` run outside the `xactfetch` container, that is only useful during development; both processes need to run in the container in Kubernetes. --- .containerignore | 2 ++ Containerfile | 2 ++ chase2fa.py | 0 entrypoint.sh | 0 secretsocket.py | 0 5 files changed, 4 insertions(+) mode change 100644 => 100755 chase2fa.py mode change 100644 => 100755 entrypoint.sh mode change 100644 => 100755 secretsocket.py diff --git a/.containerignore b/.containerignore index 1f60177..e8359cf 100644 --- a/.containerignore +++ b/.containerignore @@ -1,6 +1,8 @@ * !.git +!chase2fa.py !entrypoint.sh !pinentry-stub.sh !pyproject.toml +!secretsocket.py !xactfetch.py diff --git a/Containerfile b/Containerfile index 107dbd4..b998013 100644 --- a/Containerfile +++ b/Containerfile @@ -27,6 +27,8 @@ RUN python3 -m pip wheel -w /wheels /src FROM scratch AS mixin COPY pinentry-stub.sh /usr/local/bin/pinentry-stub +COPY secretsocket.py /usr/local/bin/secretsocket +COPY chase2fa.py /usr/local/bin/chase2fa COPY entrypoint.sh /entrypoint.sh diff --git a/chase2fa.py b/chase2fa.py old mode 100644 new mode 100755 diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755 diff --git a/secretsocket.py b/secretsocket.py old mode 100644 new mode 100755