Skip to content

Commit

Permalink
Merge pull request #146 from brianhlin/SOFTWARE-5693.osg-23-images
Browse files Browse the repository at this point in the history
Update OSG 3.6 container references to use OSG 23 (SOFTWARE-5693)
  • Loading branch information
matyasselmeci authored Dec 19, 2023
2 parents 3532257 + 12cc9cd commit 0bf719f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions docs/data/run-frontier-squid-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ To run a Frontier Squid container with the defaults:
user@host $ docker run --rm --name frontier-squid \
-v <HOST CACHE PARTITION>:/var/cache/squid \
-v <HOST LOG PARTITION>:/var/log/squid \
-p <HOST PORT>:3128 opensciencegrid/frontier-squid:3.6-release
-p <HOST PORT>:3128 opensciencegrid/frontier-squid:23-release
```

You may pass configuration variables in `KEY=VALUE` format with either
Expand Down Expand Up @@ -112,8 +112,8 @@ TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull opensciencegrid/frontier-squid:3.6-release
ExecStart=/usr/bin/docker run --rm --name %n --publish 3128:3128 -v /tmp/squid:/var/cache/squid -v /tmp/log:/var/log/squid --env-file /opt/xcache/.env opensciencegrid/frontier-squid:3.6-release
ExecStartPre=/usr/bin/docker pull opensciencegrid/frontier-squid:23-release
ExecStart=/usr/bin/docker run --rm --name %n --publish 3128:3128 -v /tmp/squid:/var/cache/squid -v /tmp/log:/var/log/squid --env-file /opt/xcache/.env opensciencegrid/frontier-squid:23-release
[Install]
Expand Down
6 changes: 3 additions & 3 deletions docs/data/stashcache/run-stash-origin-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ user@host $ docker run --rm --publish 1094:1094 --publish 1095:1095 \
--volume <HOST CERT>:/etc/grid-security/hostcert.pem \
--volume <HOST KEY>:/etc/grid-security/hostkey.pem \
--env-file=/opt/origin/.env \
opensciencegrid/stash-origin:3.6-release
opensciencegrid/stash-origin:23-release
```

Replacing `<HOST PARTITION>` with the host directory containing data that your origin should serve.
Expand Down Expand Up @@ -157,15 +157,15 @@ TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull opensciencegrid/stash-origin:3.6-release
ExecStartPre=/usr/bin/docker pull opensciencegrid/stash-origin:23-release
ExecStart=/usr/bin/docker run --rm --name %n \
--publish 1094:1094 \
--publish 1095:1095 \
--volume /srv/origin:/xcache/namespace \
--volume /etc/ssl/host.crt:/etc/grid-security/hostcert.pem \
--volume /etc/ssl/host.key:/etc/grid-security/hostkey.pem \
--env-file /opt/origin/.env \
opensciencegrid/stash-origin:3.6-release
opensciencegrid/stash-origin:23-release
[Install]
WantedBy=multi-user.target
Expand Down
10 changes: 5 additions & 5 deletions docs/data/stashcache/run-stashcache-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ user@host $ docker run --rm \
...
--volume <DATA PARTITION N>:/xcache/dataN
--env-file=/opt/xcache/.env \
opensciencegrid/stash-cache:3.6-release
opensciencegrid/stash-cache:23-release
```

!!! warning
Expand All @@ -210,7 +210,7 @@ user@host $ docker run --rm \
--volume <HOST CERT>:/etc/grid-security/hostcert.pem \
--volume <HOST KEY>:/etc/grid-security/hostkey.pem \
--env-file=/opt/xcache/.env \
opensciencegrid/stash-cache:3.6-release
opensciencegrid/stash-cache:23-release
```

### Running a cache on container with systemd
Expand All @@ -236,15 +236,15 @@ TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull opensciencegrid/stash-cache:3.6-release
ExecStartPre=/usr/bin/docker pull opensciencegrid/stash-cache:23-release
ExecStart=/usr/bin/docker run --rm --name %n \
--publish 8000:8000 \
--publish 8443:8443 \
--volume /srv/cache:/xcache \
--volume /etc/ssl/host.crt:/etc/grid-security/hostcert.pem \
--volume /etc/ssl/host.key:/etc/grid-security/hostkey.pem \
--env-file /opt/xcache/.env \
opensciencegrid/stash-cache:3.6-release
opensciencegrid/stash-cache:23-release
[Install]
WantedBy=multi-user.target
Expand Down Expand Up @@ -274,7 +274,7 @@ user@host $ docker run --rm \
--volume <HOST CERT>:/etc/grid-security/hostcert.pem \
--volume <HOST KEY>:/etc/grid-security/hostkey.pem \
--env-file=/opt/xcache/.env \
opensciencegrid/stash-cache:3.6-release
opensciencegrid/stash-cache:23-release
```

### Memory optimization ###
Expand Down
4 changes: 2 additions & 2 deletions docs/resource-sharing/os-backfill-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ docker run -it --rm --user osg \
-e CVMFSEXEC_REPOS=" \
oasis.opensciencegrid.org \
singularity.opensciencegrid.org" \
opensciencegrid/osgvo-docker-pilot:3.6-release
opensciencegrid/osgvo-docker-pilot:23-release
```

Replace `/path/to/token` with the location you saved the token obtained from the OSPool Token Registry.
Expand Down Expand Up @@ -208,7 +208,7 @@ docker run -it --rm --user osg \
-e GLIDEIN_ResourceName="..." \
-e GLIDEIN_Start_Extra="True" \
-e OSG_SQUID_LOCATION="..." \
opensciencegrid/osgvo-docker-pilot:3.6-release
opensciencegrid/osgvo-docker-pilot:23-release
```

Fill in the values for `/path/to/token`, `/worker-temp-dir`, `GLIDEIN_Site`, `GLIDEIN_ResourceName`, and `OSG_SQUID_LOCATION` [as above](#running-the-container-with-docker).
Expand Down
4 changes: 2 additions & 2 deletions docs/resource-sharing/user-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ singularity run --contain \
--bind /cvmfs \
--bind /dev/fuse \
--scratch /pilot \
docker://opensciencegrid/osgvo-docker-pilot:3.6-release
docker://opensciencegrid/osgvo-docker-pilot:23-release
```

The above example rebuilds the Docker container on each host.
If you plan to run large numbers of these jobs, you can download the Docker container once and create a local
Singularity image:

```
$ singularity build osgvo-pilot.sif docker://opensciencegrid/osgvo-docker-pilot:3.6-release
$ singularity build osgvo-pilot.sif docker://opensciencegrid/osgvo-docker-pilot:23-release
```

In this case, the `singularity run` command should be changed to:
Expand Down
2 changes: 1 addition & 1 deletion docs/security/tokens/using-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ which is useful for looking inside tokens.
1. Start an agent container in the background and name it `my-agent` to easily run subsequent commands against it:

:::console
docker run -d --name my-agent opensciencegrid/oidc-agent:3.6-release
docker run -d --name my-agent opensciencegrid/oidc-agent:23-release

1. Generate a local client profile and follow the prompts:

Expand Down

0 comments on commit 0bf719f

Please sign in to comment.