From dff8c761e0024dbe8eda54259e9da4814a60675e Mon Sep 17 00:00:00 2001 From: Vishwas Siravara Date: Sun, 8 Oct 2023 22:44:17 -0700 Subject: [PATCH 1/3] add cosign to rootfs Signed-off-by: Vishwas Siravara --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index dab2ce9..26d13b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,12 @@ RUN dnf install -y \ iptables \ fuse-sshfs +# install cosign +RUN curl -L -O https://github.com/sigstore/cosign/releases/download/v2.0.1/cosign-2.0.1.x86_64.rpm +RUN sudo rpm -ivh cosign-2.0.1.x86_64.rpm +RUN rm -rf cosign-2.0.1.x86_64.rpm + + RUN systemctl enable cloud-init cloud-init-local cloud-config cloud-final # enable systemd From 5556b5ec5c9603da3eec9da30c0c598f0a008e62 Mon Sep 17 00:00:00 2001 From: Vishwas Siravara Date: Sun, 8 Oct 2023 22:45:35 -0700 Subject: [PATCH 2/3] remove newline Signed-off-by: Vishwas Siravara --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 26d13b7..58884cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,6 @@ RUN curl -L -O https://github.com/sigstore/cosign/releases/download/v2.0.1/cosig RUN sudo rpm -ivh cosign-2.0.1.x86_64.rpm RUN rm -rf cosign-2.0.1.x86_64.rpm - RUN systemctl enable cloud-init cloud-init-local cloud-config cloud-final # enable systemd From b487b733072b996dda285fa43e7806b7e278e9f7 Mon Sep 17 00:00:00 2001 From: Vishwas Siravara Date: Tue, 10 Oct 2023 09:42:48 -0700 Subject: [PATCH 3/3] refactor dockerfile Signed-off-by: Vishwas Siravara --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58884cb..c4721cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,9 @@ RUN dnf install -y \ fuse-sshfs # install cosign -RUN curl -L -O https://github.com/sigstore/cosign/releases/download/v2.0.1/cosign-2.0.1.x86_64.rpm -RUN sudo rpm -ivh cosign-2.0.1.x86_64.rpm -RUN rm -rf cosign-2.0.1.x86_64.rpm +RUN curl -L -O https://github.com/sigstore/cosign/releases/download/v2.0.1/cosign-2.0.1.x86_64.rpm && \ + sudo rpm -ivh cosign-2.0.1.x86_64.rpm && \ + rm -rf cosign-2.0.1.x86_64.rpm RUN systemctl enable cloud-init cloud-init-local cloud-config cloud-final