瀏覽代碼

make the image kokoro compatible

Jan Tattermusch 7 年之前
父節點
當前提交
5f5d696b8a
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      tools/gce/linux_kokoro_performance_worker_init.sh

+ 6 - 0
tools/gce/linux_kokoro_performance_worker_init.sh

@@ -187,6 +187,12 @@ sudo apt-get install -y python-scipy python-numpy
 # shellcheck disable=SC2024
 # shellcheck disable=SC2024
 sudo tee --append ~kbuilder/.ssh/authorized_keys < kokoro_performance.pub
 sudo tee --append ~kbuilder/.ssh/authorized_keys < kokoro_performance.pub
 
 
+# Kokoro requires /tmpfs/READY file to exist the directory and file itself should
+# be owned by kbuilder.
+sudo mkdir /tmpfs
+sudo chown kbuilder /tmpfs
+touch /tmpfs/READY
+
 # Restart for VM to pick up kernel update
 # Restart for VM to pick up kernel update
 echo 'Successfully initialized the linux worker, going for reboot in 10 seconds'
 echo 'Successfully initialized the linux worker, going for reboot in 10 seconds'
 sleep 10
 sleep 10