From c9032e2e4ce4be2ef3e5d643633a0a45a7cb651f Mon Sep 17 00:00:00 2001 From: Michel Thebeau Date: Tue, 17 Jan 2023 14:00:46 -0500 Subject: [PATCH] Add Debian based stx-vault-manager image Restore the image build for stx-vault-manager. Reference the removal of CentOS based image: commit 20167fc5. It is effectively the same but for Debian, a newer kubectl version, and the 'slim' image size. Vault manager uses kubectl and miscellaneous tools including: curl, jq, awk, bash, grep, sed and coreutils. Test Plan: PASS - Standard, dedicated storage 2+2+2 PASS - apply vault application with helm override to use the new image PASS - observe pod logs, vault-manager operation PASS - test vault HA, observe vault-manager operation PASS - configure vault, configure secret, read secret PASS - apply helloworld app, confirm read secret Story: 2010393 Task: 46869 Change-Id: I9ca31d2f1047e704f961936ba8f04a7abdab56f5 Signed-off-by: Michel Thebeau --- debian_stable_docker_images.inc | 1 + stx-vault-manager/debian/docker/Dockerfile | 13 +++++++++++++ .../debian/stx-vault-manager.stable_docker_image | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 debian_stable_docker_images.inc create mode 100644 stx-vault-manager/debian/docker/Dockerfile create mode 100644 stx-vault-manager/debian/stx-vault-manager.stable_docker_image diff --git a/debian_stable_docker_images.inc b/debian_stable_docker_images.inc new file mode 100644 index 0000000..97f48e0 --- /dev/null +++ b/debian_stable_docker_images.inc @@ -0,0 +1 @@ +stx-vault-manager diff --git a/stx-vault-manager/debian/docker/Dockerfile b/stx-vault-manager/debian/docker/Dockerfile new file mode 100644 index 0000000..ceca436 --- /dev/null +++ b/stx-vault-manager/debian/docker/Dockerfile @@ -0,0 +1,13 @@ +from debian:stable-slim + +ENV KUBE_LATEST_VERSION="v1.24.4" +ENV KUBECTL_DL_URL="https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl" + +RUN set -ex; \ + PKG_LIST="mawk bash coreutils curl grep sed jq"; \ + apt-get update && apt-get install -y $PKG_LIST \ + && apt-get clean && rm -r /var/lib/apt/lists/* \ + && curl -L "$KUBECTL_DL_URL" -o /usr/local/bin/kubectl \ + && chmod +x /usr/local/bin/kubectl + +CMD ["bash"] diff --git a/stx-vault-manager/debian/stx-vault-manager.stable_docker_image b/stx-vault-manager/debian/stx-vault-manager.stable_docker_image new file mode 100644 index 0000000..a67d002 --- /dev/null +++ b/stx-vault-manager/debian/stx-vault-manager.stable_docker_image @@ -0,0 +1,2 @@ +BUILDER=docker +LABEL=stx-vault-manager