{"id":19424637,"url":"https://github.com/fredrikaverpil/jugs","last_synced_at":"2026-06-10T01:31:33.889Z","repository":{"id":71243163,"uuid":"112200887","full_name":"fredrikaverpil/jugs","owner":"fredrikaverpil","description":"Jupyter Notebook with Google Compute Storage access","archived":false,"fork":false,"pushed_at":"2017-11-27T14:02:02.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T11:38:33.182Z","etag":null,"topics":["dockerfile","google-storage-bucket","jupyter-notebook"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredrikaverpil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-27T13:40:19.000Z","updated_at":"2024-07-19T21:34:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"e54feed1-2964-49c2-9d63-906436fc2ae9","html_url":"https://github.com/fredrikaverpil/jugs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fjugs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fjugs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fjugs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fjugs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredrikaverpil","download_url":"https://codeload.github.com/fredrikaverpil/jugs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240605714,"owners_count":19827981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dockerfile","google-storage-bucket","jupyter-notebook"],"created_at":"2024-11-10T13:44:54.683Z","updated_at":"2026-06-10T01:31:33.883Z","avatar_url":"https://github.com/fredrikaverpil.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# jugs :sake:\n\nThis is a Docker container which runs `gcsfuse` and `jupyter-notebook`, which allows to make notebooks on live Google bucket data sets.\n\n- See the [`Dockerfile`](Dockerfile) for details on Python setup\n- Requires JSON key credentials from Google for bucket access (uses `gcloud` for auth)\n\n\n## Instructions\n\n### Clone repo\n\n```bash\ngit clone https://github.com/fredrikaverpil/jugs.git\n```\n\n### Google credentials\n\nTo gain access to a bucket, download a Google JSON credentials file from your GCE console and place it in the repository root folder as `key.json`.\n\n\n### Build container\n\n```bash\ndocker build -t fredrikaverpil/jugs .\n```\n\n### Run container\n\n**Linux**\n```bash\ndocker run --rm --detach --privileged --name=\"jugs\" --hostname jugs -p 8888:8888 --volume $(pwd):/jugs fredrikaverpil/jugs\n```\n\n**Windows (CMD.exe)**\n```bash\ndocker run --rm --detach --privileged --name=\"jugs\" --hostname jugs -p 8888:8888 --volume %CD%:/jugs fredrikaverpil/jugs\n```\n\n**Windows (Powershell)**\n```bash\ndocker run --rm --detach --privileged --name=\"jugs\" --hostname jugs -p 8888:8888 --volume ${PWD}:/jugs fredrikaverpil/jugs\n```\n\n### Enter container\n\n```bash\ndocker exec -ti jugs bash\n```\n\n### Mount Google Storage bucket\n\n```bash\nmkdir -p /bucket\ngcsfuse -o ro --key-file=/jugs/key.json my-bucket /bucket  # read only access\n```\n\nIf folders are missing, use the `--implicit-dirs` option (slow!), read more on that [here](https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/semantics.md#implicit-directories).\n\n\n### Start Jupyter Notebook\n\n```bash\n~/miniconda/envs/jugs/bin/jupyter notebook --allow-root --no-browser --ip=$(hostname -i)\n```\n\nNotes:\n\n- Access Jupyter: `http://localhost:8888`\n- Use this option to avoid using the token: `--NotebookApp.token=''`\n\nYou can now create Jupyter notebooks which have live access to a Google bucket. Save the notebooks in `/jugs` so that you can access them later...\n\n\n### Stop and delete container\n\n```bash\ndocker stop jugs\ndocker rm -vf jugs\n```\n\n### Delete image\n\n```bash\ndocker rmi -f jugs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredrikaverpil%2Fjugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredrikaverpil%2Fjugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredrikaverpil%2Fjugs/lists"}