Skip to content

Commit

Permalink
chmod for bucket dir read
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Oct 30, 2023
1 parent e93286f commit 03a3357
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions dataverk_airflow/bucket_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ def bucket_read(
],
command=["/bin/sh", "-c"],
args=[
f"gsutil cp -r gs://{os.environ['GCS_BUCKET']}/* {mount_path}/"
f"gsutil cp -r gs://{os.environ['GCS_BUCKET']}/* {mount_path}/ && chmod -R 754 {mount_path}"
],
resources=k8s.V1ResourceRequirements(
requests={"memory": "128Mi"},
limits={"memory": "128Mi"}
),
security_context=V1SecurityContext(
run_as_user=50000,
seccomp_profile=V1SeccompProfile(
type="RuntimeDefault"
)
)
)

0 comments on commit 03a3357

Please sign in to comment.