File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
plugincontainer/examples/container Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 49
49
(
50
50
set -e
51
51
ARCH="$(uname -m)"
52
- URL="https://storage.googleapis.com/gvisor/releases/release/latest /${ARCH}"
52
+ URL="https://storage.googleapis.com/gvisor/releases/release/20240311 /${ARCH}"
53
53
wget --quiet "${URL}/runsc" "${URL}/runsc.sha512" \
54
54
"${URL}/containerd-shim-runsc-v1" "${URL}/containerd-shim-runsc-v1.sha512"
55
55
sha512sum -c runsc.sha512 \
Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ COPY go-plugin-counter /bin/go-plugin-counter
7
7
8
8
ENTRYPOINT [ "/bin/go-plugin-counter" ]
9
9
10
- FROM docker.mirror.hashicorp.services/ubuntu as nonroot
10
+ # This is docker.mirror.hashicorp.services/ubuntu:24.04 as of 2024-07-31.
11
+ FROM docker.mirror.hashicorp.services/ubuntu@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 as nonroot
11
12
12
13
COPY go-plugin-counter /bin/go-plugin-counter
13
14
14
15
RUN apt-get update && apt-get install -y libcap2-bin acl && \
15
- addgroup --system nonroot && \
16
- adduser --system --ingroup nonroot nonroot && \
16
+ groupadd --system nonroot && \
17
+ useradd --system -g nonroot nonroot && \
17
18
chown -R nonroot:nonroot /bin/go-plugin-counter && \
18
19
cp /bin/go-plugin-counter /bin/go-plugin-counter-mlock && \
19
20
setcap cap_ipc_lock=+ep /bin/go-plugin-counter-mlock
@@ -27,4 +28,4 @@ FROM nonroot as nonroot-mlock
27
28
ENTRYPOINT [ "/bin/go-plugin-counter-mlock" ]
28
29
29
30
# Set root as the default image.
30
- FROM root
31
+ FROM root
You can’t perform that action at this time.
0 commit comments