Skip to content

Commit edd6a41

Browse files
committed
base: Add rootless kit installer
Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
1 parent cd63aa8 commit edd6a41

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

linux/base.Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,16 @@ RUN curl -fsSL https://aka.ms/install-azd.sh | bash && \
215215
# Add soft links
216216
#
217217
ln -s /usr/bin/python3 /usr/bin/python && \
218-
ln -s /usr/bin/node /usr/bin/nodejs
218+
ln -s /usr/bin/node /usr/bin/nodejs && \
219+
#
220+
# Install rootless kit
221+
TMP_DIR=$(mktemp -d) && \
222+
pushd $TMP_DIR && \
223+
ROOTLESSKIT_VERSION=$(curl https://api.github.com/repos/rootless-containers/rootlesskit/releases/latest | jq -r '.tag_name') && \
224+
curl -LO https://github.com/rootless-containers/rootlesskit/releases/download/${ROOTLESSKIT_VERSION}/rootlesskit-x86_64.tar.gz && \
225+
curl -LO https://github.com/rootless-containers/rootlesskit/releases/download/${ROOTLESSKIT_VERSION}/SHA256SUMS && \
226+
sha256sum -c SHA256SUMS --ignore-missing && \
227+
tar -xf rootlesskit-x86_64.tar.gz && \
228+
cp rootlesskit rootlesskit-docker-proxy /usr/bin/ && \
229+
popd && \
230+
rm -rf $TMP_DIR

tests/command_list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,8 @@ roff2pdf
10861086
roff2ps
10871087
roff2text
10881088
roff2x
1089+
rootlesskit
1090+
rootlesskit-docker-proxy
10891091
route
10901092
routef
10911093
routel

0 commit comments

Comments
 (0)