From edd6a4124bb1c1cab1bc20eff05be18e85476037 Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Fri, 18 Oct 2024 17:08:35 -0700 Subject: [PATCH] base: Add rootless kit installer Signed-off-by: Suraj Deshmukh --- linux/base.Dockerfile | 14 +++++++++++++- tests/command_list | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/linux/base.Dockerfile b/linux/base.Dockerfile index 18de5d25..9eda817c 100644 --- a/linux/base.Dockerfile +++ b/linux/base.Dockerfile @@ -215,4 +215,16 @@ RUN curl -fsSL https://aka.ms/install-azd.sh | bash && \ # Add soft links # ln -s /usr/bin/python3 /usr/bin/python && \ - ln -s /usr/bin/node /usr/bin/nodejs + ln -s /usr/bin/node /usr/bin/nodejs && \ + # + # Install rootless kit + TMP_DIR=$(mktemp -d) && \ + pushd $TMP_DIR && \ + ROOTLESSKIT_VERSION=$(curl https://api.github.com/repos/rootless-containers/rootlesskit/releases/latest | jq -r '.tag_name') && \ + curl -LO https://github.com/rootless-containers/rootlesskit/releases/download/${ROOTLESSKIT_VERSION}/rootlesskit-x86_64.tar.gz && \ + curl -LO https://github.com/rootless-containers/rootlesskit/releases/download/${ROOTLESSKIT_VERSION}/SHA256SUMS && \ + sha256sum -c SHA256SUMS --ignore-missing && \ + tar -xf rootlesskit-x86_64.tar.gz && \ + cp rootlesskit rootlesskit-docker-proxy /usr/bin/ && \ + popd && \ + rm -rf $TMP_DIR diff --git a/tests/command_list b/tests/command_list index ee39ac6c..c3099156 100644 --- a/tests/command_list +++ b/tests/command_list @@ -1086,6 +1086,8 @@ roff2pdf roff2ps roff2text roff2x +rootlesskit +rootlesskit-docker-proxy route routef routel