Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dont Merge] GCSFuse as a sidecar #4529

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions http/src/main/resources/init-resources/gce-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,14 @@ STEP_TIMINGS+=($(date +%s))

log 'Starting up the Jupyter...'


# Start gcsfuse as a sidecar
mkdir -p /mnt/disks/bucket
docker run -d --name gcsfuse-container --privileged -u root -e PIP_USER=false --env BUCKET_NAME=genomics-public-data --device /dev/fuse:/dev/fuse --security-opt apparmor=unconfined -v /mnt/disks/bucket:/mnt/gcs-bucket:shared tarekmahmed/gcsfuse-container:latest
# Use docker compose here
# $(DOCKER_COMPOSE) -f ${DOCKER_COMPOSE_FILES_DIRECTORY}/`basename gcsfuse-docker-compose-gce.yaml` config


# Run docker-compose for each specified compose file.
# Note the `docker-compose pull` is retried to avoid intermittent network errors, but
# `docker-compose up` is not retried since if that fails, something is probably broken
Expand Down
7 changes: 7 additions & 0 deletions http/src/main/resources/init-resources/init-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,13 @@ END

log 'Starting up the Jupydocker...'

# Start gcsfuse as a sidecar
mkdir -p /mnt/disks/bucket
docker run -d --name gcsfuse-container --privileged -u root -e PIP_USER=false --env BUCKET_NAME=genomics-public-data --device /dev/fuse:/dev/fuse --security-opt apparmor=unconfined -v /mnt/disks/bucket:/mnt/gcs-bucket:shared tarekmahmed/gcsfuse-container:latest
# Use docker compose here
# $(DOCKER_COMPOSE) -f ${DOCKER_COMPOSE_FILES_DIRECTORY}/`basename gcsfuse-docker-compose-gce.yaml` config


# Run docker-compose for each specified compose file.
# Note the `docker-compose pull` is retried to avoid intermittent network errors, but
# `docker-compose up` is not retried.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
volumes:
# shared with welder
- "/mnt/disks/work:${NOTEBOOKS_DIR}"
- /mnt/disks/bucket:/usr/local/genomics:shared
restart: always
environment:
GOOGLE_PROJECT: "${GOOGLE_PROJECT}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- /hadoop:/hadoop
- /hadoop_gcs_connector_metadata_cache:/hadoop_gcs_connector_metadata_cache
- /usr/local/share/google/dataproc:/usr/local/share/google/dataproc
- /mnt/disks/bucket:/usr/local/genomics:shared
restart: always
environment:
GOOGLE_PROJECT: "${GOOGLE_PROJECT}"
Expand Down
Loading