Debian Codegraph @

launcher/image/testworkloads/privileged/Dockerfile

raw
1 # From current directory:
2 # gcloud builds submit --tag us-west1-docker.pkg.dev/confidential-space-images-dev/cs-integ-test-images/privileged:latest --project confidential-space-images-dev
3 FROM alpine
4
5 RUN apk update
6 RUN apk add libcap
7
8 LABEL "tee.launch_policy.log_redirect"="always"
9 LABEL "tee.launch_policy.allow_capabilities"="true"
10 LABEL "tee.launch_policy.allow_cgroups"="true"
11
12 # Get capabilities for PID 1.
13 # Run the 'ls' command on /sys/fs/cgroup and attempt to create a new cgroup.
14 ENTRYPOINT ["sh", "-c", "getpcaps 1 && ls -la /sys/fs/cgroup && cd /sys/fs/cgroup && mkdir -p cpu/testgroup && mkdir -p memory/testgroup && ls cpu"]