Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcphysx/nginx-fuse
A NGINX and Google Cloud Storage adapter using Docker and GCSFuse
https://github.com/arcphysx/nginx-fuse
Last synced: about 2 months ago
JSON representation
A NGINX and Google Cloud Storage adapter using Docker and GCSFuse
- Host: GitHub
- URL: https://github.com/arcphysx/nginx-fuse
- Owner: arcphysx
- License: mit
- Created: 2023-08-30T07:45:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-30T10:30:15.000Z (over 1 year ago)
- Last Synced: 2023-08-30T14:32:49.785Z (over 1 year ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NGINX FUSE
A NGINX and Google Cloud Storage adapter using Docker and GCSFuse
## Usage/Examples
1. Create `credentials.json` file containing Service Account Credentials in JSON format
2. Build docker image from the Dockerfile
```bash
# You can replace "gcsfuse" below with any prefered tag namedocker build -t gcsfuse .
```3. Run the Docker image
```bash
docker run -it --rm --privileged -p 8080:8080 -e BUCKET_NAME="some-bucket-name" gcsfuse
```4. Access http://localhost:8080 and it should show the directory and file from your GCS bucket
## Authors
- [@arcphysx](https://github.com/arcphysx)
## FAQ
#### How to get Service Account Credentials?
[read here](https://cloud.google.com/storage/docs/gcsfuse-mount#authenticate_by_using_a_service_account)
#### Why we need `--privileged` attribute?
Read the discussion [here](https://github.com/docker/for-linux/issues/321#issuecomment-468659916)#### Can we run GCS Fuse without privileges in K8s/GKE?
Found the possible solution [here](https://github.com/samos123/gke-gcs-fuse-unprivileged), but not tested yet