mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix kokoro image build scripts
The /tmpfs directory needs to be writable, and kokoro needs passwordless sudo access to execute the test scripts. PiperOrigin-RevId: 266063723
This commit is contained in:
committed by
gVisor bot
parent
24ecce5dbf
commit
06ae36185e
@@ -33,10 +33,15 @@ if useradd -c "kbuilder user" -m -s /bin/bash kbuilder; then
|
||||
chmod 0600 ~kbuilder/.ssh/authorized_keys
|
||||
fi
|
||||
|
||||
# Give passwordless sudo access.
|
||||
cat > /etc/sudoers.d/kokoro <<EOF
|
||||
kbuilder ALL=(ALL) NOPASSWD:ALL
|
||||
EOF
|
||||
|
||||
# Ensure that /tmpfs exists and is writable by kokoro.
|
||||
#
|
||||
# Note that kokoro will typically attach a second disk (sdb) to the instance
|
||||
# that is used for the /tmpfs volume. In the future we could setup an init
|
||||
# script that formats and mounts this here; however, we don't expect our build
|
||||
# artifacts to be that large.
|
||||
mkdir -p /tmpfs && chmod 0755 /tmpfs && touch /tmpfs/READY
|
||||
mkdir -p /tmpfs && chmod 0777 /tmpfs && touch /tmpfs/READY
|
||||
|
||||
Reference in New Issue
Block a user