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

SOFTWARE-5299: OSG_PROJECT_NAME configuration for Docker pilots #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/resource-sharing/os-backfill-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ In order to successfully start payload jobs:
Replace `/worker-temp-dir` with a directory you created for jobs to write into.
Make sure the user you run your container as has write access to this directory.

6. _Optional:_ add an expression with the `GLIDEIN_Start_Extra` environment variable to append to the
[HTCondor `START` expression](https://htcondor.readthedocs.io/en/latest/admin-manual/policy-configuration.html#the-start-expression);
this limits the pilot to only run certain jobs.
6. _Optional:_ specify a project with the `OSG_PROJECT_NAME` environment variable to limit
the pilot to only run jobs from a certain project. Example:
`-e OSG_PROJECT_NAME="my-project"`. Note that the previous setting
`GLIDEIN_Start_Extra` is now deprecated and will be removed in the future.

7. _Optional:_ [limit OSG pilot container resource usage](#limiting-resource-usage)

Expand All @@ -77,7 +78,6 @@ docker run -it --rm --user osg \
-v /worker-temp-dir:/pilot \
-e GLIDEIN_Site="..." \
-e GLIDEIN_ResourceName="..." \
-e GLIDEIN_Start_Extra="True" \
-e OSG_SQUID_LOCATION="..." \
-e CVMFSEXEC_REPOS=" \
oasis.opensciencegrid.org \
Expand Down Expand Up @@ -160,7 +160,6 @@ docker run -it --rm --user osg \
-v /worker-temp-dir:/pilot \
-e GLIDEIN_Site="..." \
-e GLIDEIN_ResourceName="..." \
-e GLIDEIN_Start_Extra="True" \
-e OSG_SQUID_LOCATION="..." \
opensciencegrid/osgvo-docker-pilot:3.6-release
```
Expand Down
9 changes: 5 additions & 4 deletions docs/resource-sharing/user-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ export TOKEN="put_your_provided_token_here"
export GLIDEIN_Site="SDSC"
export GLIDEIN_ResourceName="Comet"

# This is an important setting limiting what jobs your glideins will accept.
# At the minimum, the expression should limit the "Owner" of the jobs to
# whatever your username is on the OSG _submit_ side
export GLIDEIN_Start_Extra="Owner == \"my_osgconnect_username\""
# You may limit pilots to only run jobs from a specific project. For
# example, if the pilot runs on hardware which is dedicated and policy
# states that only project jobs may use that hardward. The default is
# to run any job in the OSPool.
# export OSG_PROJECT_NAME="my-project"

module load singularity
singularity run --contain \
Expand Down