Skip to content

Commit

Permalink
Fix mounting gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Sep 19, 2023
1 parent f638b68 commit 1df6a07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cluster/scripts/start-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ chmod a+w /mnt/disks/$mount_dir

# Mount env buckets
mkdir -p /mnt/disks/envs-pipeline
gcsfuse e2b-fc-env-pipeline /mnt/disks/envs-pipeline
gcsfuse -o=allow_other --implicit-dirs e2b-fc-env-pipeline /mnt/disks/envs-pipeline

mkdir -p /mnt/disks/docker-contexts
gcsfuse e2b-envs-docker-context /mnt/disks/docker-contexts
gcsfuse -o=allow_other --implicit-dirs e2b-envs-docker-context /mnt/disks/docker-contexts

# Setup Nomad task drivers
sudo cp /mnt/disks/envs-pipeline/env-build-task-driver -o /opt/nomad/plugins/env-build-task-driver
sudo cp /mnt/disks/envs-pipeline/env-build-task-driver /opt/nomad/plugins/env-build-task-driver
sudo chmod +x /opt/nomad/plugins/env-build-task-driver

sudo cp /mnt/disks/envs-pipeline/env-instance-task-driver -o /opt/nomad/plugins/env-instance-task-driver
sudo cp /mnt/disks/envs-pipeline/env-instance-task-driver /opt/nomad/plugins/env-instance-task-driver
sudo chmod +x /opt/nomad/plugins/env-instance-task-driver

# These variables are passed in via Terraform template interplation
# These variables are passed in via Terraform template interpolation
/opt/consul/bin/run-consul.sh --client --cluster-tag-name "${cluster_tag_name}" &
/opt/nomad/bin/run-nomad.sh --client &

0 comments on commit 1df6a07

Please sign in to comment.