Mounting a GCS bucket to a Linux machine
For now, best resource is the adi-server-bootstrap.sh which contains the proper scripts to create the mount.
Installing gcsfuse:
download apt key
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
dest: /usr/share/keyrings/cloud.google.asc
add apt repo
repo: "deb [signed-by=/usr/share/keyrings/cloud.google.asc] https://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main"
install gcsfuse
apt install gcsfuse
Configuring etc/fstab: (the fstab configuration looks different)
Mount adi-ci-builds cloud storage bucket to /mnt/ci-builds
path: /mnt/ci-builds
src: adi-ci-builds
fstype: gcsfuse
opts: _netdev,x-systemd.after=network-online.target,user,rw,allow_other,uid=attracs_process,gid=attracs,implicit_dirs
- Create bucket
- to do: Bucket permissions??
- Mount from linux
- How do you configure it from
/etc/fstab?
- How do you configure it from