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

#2299: Fixed a syntax error that occurs while running a ganga job using Docker #2301

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

dg1223
Copy link
Contributor

@dg1223 dg1223 commented Feb 27, 2024

Adding an escape character to each of the execmd lines (81 and 104) in Docker.py seems to solve the issue.

Visible changes on line 230 in the resulting input file (/home/[your_linux_username]/gangadir/workspace/[your_linux_username]/LocalXML/[job_number]/input/__jobscript__) after the job is submitted:

Before the fix

execmd = ['docker', 'run', '--rm', '-v', workdir+":"+"/work_dir"] +
             options + [virtualization_image] + execmd

After the fix
execmd = ['docker', 'run', '--rm', '-v', workdir+":"+"/work_dir"] + options + [virtualization_image] + execmd

Similar change in line 253.

Passed all unit tests.

Copy link
Member

@egede egede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this syntax error.

@dg1223
Copy link
Contributor Author

dg1223 commented Feb 28, 2024

Thanks for fixing this syntax error.

No problem!

@egede egede merged commit 6674b9e into ganga-devs:develop Feb 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running a Ganga job locally through a Docker container throws syntax error
2 participants