I am trying to create each job with a job like:
universe = docker
docker_image = my_image:tag
executable = /opt/bin/cmd_a
# The executable present in the image
transfer_executable = False,
arguments = params.yml
should_transfer_files = True
transfer_input_files = params.yml
transfer_output_files = result.txt
# Logs
output = mode_a.out
error = mode_a.err
log = mode_a.log
Where /opt/bin/cmd_a changes in each job.
Looking at the condor logs, the docker create command generated is something like:
Attempting to run: /usr/bin/docker create [may arguments ommited]
--init [tons of -e and --volume and --workdir --user --group]
my_image:tag /opt/bin/cmd_a params.yml
From the documentation of docker run/create
https://urldefense.com/v3/__https://docs.docker.com/engine/reference/run/*commands-and-arguments__;Iw!!Mak6IKo!O1CiPQXCXNvkdU2AIVEWJ1stdiyz6bC3WCTCVn64SFQJSLkmjYRi8xjrsOv6S5ClEdeQXDiz1Gl6Jir1Q4rdULnhe08$
Seems like this shall work, and docker will run:
/opt/bin/cmd_a params.yml
The problem is that when condor starts the image the effective command line is:
/usr/bin/entrypoint /opt/bin/cmd_a params.yml
And this fails.
Looking even more in the docs, in:
https://urldefense.com/v3/__https://docs.docker.com/engine/reference/builder/*entrypoint__;Iw!!Mak6IKo!O1CiPQXCXNvkdU2AIVEWJ1stdiyz6bC3WCTCVn64SFQJSLkmjYRi8xjrsOv6S5ClEdeQXDiz1Gl6Jir1Q4rdhq3m7pU$
seems that when an entrypoint is defined, docker uses all the arguments of "docker create" for the entrypoint and do not use the first one as command.
The docker create command that will do what I am expecting would look like:
Attempting to run: /usr/bin/docker create [may arguments ommited]
--init [tons of -e and --volume and --workdir --user --group]
--entrypoint /opt/bin/cmd_a my_image:tag params.yml
Is there any option for the docker job that modifies the entrypoint to obtain something like this?
Thanks!
AndrÃs Ayala
Any email message from EUMETSAT is sent in good faith but shall neither be binding nor construed as constituting a commitment by EUMETSAT, except where provided for in a written agreement or contract or if explicitly stated in the email. Please note that any views or opinions presented in this email are solely those of the sender and do not necessarily represent those of EUMETSAT. This message and any attachments are intended for the sole use of the addressee(s) and may contain confidential and privileged information. Any unauthorised use, disclosure, dissemination or distribution (in whole or in part) of its contents is not permitted. If you received this message in error, please notify the sender and delete it from your system.
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/