Tags:
create new tag
view all tags
---+ HTCondor Docker usage Condor has the capability to pull docker images from docker hub: https://hub.docker.com/<br /><br />To do this we must make a few small modifications to the submitfile as well as our general workflow. To start, here is an example of a submit file using the docker capabilities of condor: ---------------------------------------------------<br />Universe = docker<br />Executable = ./dockertest.sh<br />docker_image = uwclms/python3.6<br />Log = test.log<br />Output = test.out<br />Error = test.error<br />request_memory = 512 <br />should_transfer_files = YES <br />when_to_transfer_output = ON_EXIT<br />Queue -----------------------------------------<br /><br />There are four important lines here.<br /><br />The first is that the "Universe" should be set to "docker"<br /><br />Next we must point condor at the proper image, this should be the namespace of the docker image on docker hub. The "uwclms/python3.6" Image is a standard image built for our environment that has a list of default python packages installed that are commonly used. The next two pieces "should_transfer_files = YES" and "when_to_transfer_output = ON_EXIT" are features that will help move our executable into the docker container, as well as pulling output out. Anything written to the "/scratch" directory during the job will be transfered back out into the submit directory upon job completion. IE if you submit a job from "/home/userA/job/" Anything you write to "/scratch" will end up in that directory once the job as completed.<br /><br />In addition to the scratch directory however, we also mount the "/corpora" directory for input, as well as the "/projects" Directory for both input and output. This directories are mounted by HTCondor and NOT by docker. Any image you run via condor will have these directories available.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2019-03-07
-
linghelp
Home
Site map
Main web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback