Skip to content

Commit

Permalink
Merge pull request #34 from ironicbadger/gpu-fixes-for-nix
Browse files Browse the repository at this point in the history
fixes syntax for gpu caps
  • Loading branch information
ironicbadger authored Dec 15, 2024
2 parents ed20811 + fa5341b commit 38587bc
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,6 @@ services:
{% endfor %}
{% endif %}
{% endif %}
{% if container.stdin_open is defined %}
stdin_open: {{ container.stdin_open }}
{% endif %}
{% if container.tty is defined %}
tty: {{ container.tty }}
{% endif %}
{% if container.entrypoint is defined %}
{% if container.entrypoint is string %}
entrypoint: {{ container.entrypoint }}
{% else %}
entrypoint:
{% for entrypoint in container.entrypoint %}
- {{ entrypoint }}
{% endfor %}
{% endif %}
{% endif %}
{% if container.security_opt is defined %}
security_opt:
{% for sec_opt in container.security_opt %}
Expand Down Expand Up @@ -203,6 +187,10 @@ services:
devices:
{% for device in container.deploy.resources.reservations.devices %}
- driver: {{ device.driver }}
capabilities:
{% for item in device.capabilities %}
- {{ item }}
{% endfor %}
{% if device.device_ids is defined %}
device_ids:
{% for device_id in device.device_ids %}
Expand Down

0 comments on commit 38587bc

Please sign in to comment.