File: cuda-tests.service

package info (click to toggle)
python-awkward 2.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,088 kB
  • sloc: python: 148,689; cpp: 33,562; sh: 432; makefile: 21; javascript: 8
file content (25 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[Unit]
Description=Awkward CUDA Tests Service
After=docker.service
Requires=docker.service
After=network-online.target
Requires=network-online.target

[Service]
TimeoutStartSec=0
Restart=never
Type=oneshot
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
# Allow pull to fail if the image is e.g. only local (- prefix to this command)
ExecStartPre=-/usr/bin/docker pull agoose77/cuda-tests:latest
ExecStart=/usr/bin/docker run --rm --name %n \
    --runtime=nvidia \
    --gpus all \
    -v "${CREDENTIALS_DIRECTORY}:/creds" \
    -e GH_TOKEN_PATH=/creds/gh-token \
    agoose77/cuda-tests:latest
LoadCredential=gh-token:/etc/cuda-gh-token

[Install]
WantedBy=default.target