Skip to content

Commit

Permalink
Use login shells in science images (#937)
Browse files Browse the repository at this point in the history
Add --login argument for bash shell
  • Loading branch information
ponyisi authored Dec 5, 2024
1 parent 90e0196 commit d51aa8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servicex_app/servicex_app/transformer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def create_job_object(request_id, image, rabbitmq_uri, workers,

science_command = " "
if x509_secret:
science_command = "until [ -f /servicex/output/scripts/proxy-exporter.sh ];" \
science_command += "until [ -f /servicex/output/scripts/proxy-exporter.sh ];" \
"do sleep 5;done &&" \
" /servicex/output/scripts/proxy-exporter.sh & sleep 5 && "

Expand Down Expand Up @@ -226,7 +226,7 @@ def create_job_object(request_id, image, rabbitmq_uri, workers,
image=image,
image_pull_policy=current_app.config['TRANSFORMER_SCIENCE_IMAGE_PULL_POLICY'],
volume_mounts=volume_mounts,
command=["bash", "-c"],
command=["bash", "--login", "-c"],
env=env,
args=[science_command],
resources=resources
Expand Down

0 comments on commit d51aa8a

Please sign in to comment.