Skip to content

Commit 5325433

Browse files
hrideshmgcanihavesomecoffee
authored andcommitted
feat: enable file caching for GCSFuse
1 parent 04c62ec commit 5325433

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/ci-vm/ci-linux/startup-script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
curl -L -O https://github.com/GoogleCloudPlatform/gcsfuse/releases/download/v0.39.2/gcsfuse_0.39.2_amd64.deb
4-
dpkg --install gcsfuse_0.39.2_amd64.deb
5-
rm gcsfuse_0.39.2_amd64.deb
3+
curl -L -O https://github.com/GoogleCloudPlatform/gcsfuse/releases/download/v3.2.0/gcsfuse_3.2.0_amd64.deb
4+
dpkg --install gcsfuse_3.2.0_amd64.deb
5+
rm gcsfuse_3.2.0_amd64.deb
66

77
apt install gnupg ca-certificates
88
gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
@@ -23,7 +23,7 @@ vm_name=(${vm_name//./ })
2323

2424
echo "${gcs_bucket} /repository/temp gcsfuse rw,noatime,async,_netdev,noexec,user,implicit_dirs,allow_other,only_dir=TestData/ci-linux 0 0" | sudo tee -a /etc/fstab
2525
echo "${gcs_bucket} /repository/vm_data gcsfuse rw,noatime,async,_netdev,noexec,user,implicit_dirs,allow_other,only_dir=vm_data/${vm_name} 0 0" | sudo tee -a /etc/fstab
26-
echo "${gcs_bucket} /repository/TestFiles gcsfuse rw,noatime,async,_netdev,noexec,user,implicit_dirs,allow_other,only_dir=TestFiles 0 0" | sudo tee -a /etc/fstab
26+
echo "${gcs_bucket} /repository/TestFiles gcsfuse rw,noatime,async,_netdev,noexec,user,implicit_dirs,allow_other,only_dir=TestFiles,cache_dir=/tmp,file_cache_max_size_mb=3000,file_cache_cache_file_for_range_read=true,metadata_cache_ttl_secs=-1 0 0" | sudo tee -a /etc/fstab
2727
echo "${gcs_bucket} /repository/TestResults gcsfuse rw,noatime,async,_netdev,noexec,user,implicit_dirs,allow_other,only_dir=TestResults 0 0" | sudo tee -a /etc/fstab
2828

2929
mount temp

0 commit comments

Comments
 (0)