From 06ae36185ec0a68b4d191ba1c86d4dc250ac2b38 Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Wed, 28 Aug 2019 22:06:09 -0700 Subject: 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 --- kokoro/ubuntu1604/40_kokoro.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kokoro/ubuntu1604/40_kokoro.sh') diff --git a/kokoro/ubuntu1604/40_kokoro.sh b/kokoro/ubuntu1604/40_kokoro.sh index a49d75936..27366e83d 100755 --- a/kokoro/ubuntu1604/40_kokoro.sh +++ b/kokoro/ubuntu1604/40_kokoro.sh @@ -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 <