Skip to content

Instantly share code, notes, and snippets.

@dcshock
Created January 21, 2019 21:03
Show Gist options
  • Save dcshock/b15e6285ee8b3b139c6f1304754914ba to your computer and use it in GitHub Desktop.
Save dcshock/b15e6285ee8b3b139c6f1304754914ba to your computer and use it in GitHub Desktop.
gcsfuse install debian stretch
FROM debian:stretch
RUN apt-get update
RUN apt-get install --yes --no-install-recommends ca-certificates curl gpg
RUN echo "deb http://packages.cloud.google.com/apt gcsfuse-stretch main" | tee /etc/apt/sources.list.d/gcsfuse.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN apt-get update
RUN apt-get install --yes gcsfuse
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Requires access to the fuse device and SYS_ADMIN
# mounting gcsfuse -o nonempty {bucket} {path}
# unmounting fusermount -u {path}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment