diff --git a/focal-fossa-gpu/descriptor.json b/focal-fossa-gpu/descriptor.json new file mode 100644 index 0000000..100f302 --- /dev/null +++ b/focal-fossa-gpu/descriptor.json @@ -0,0 +1,21 @@ +{ + "id":"84127ecc-6892-4c63-8860-16a4f491fe4c", + "active":true, + "name":"focal-fossa-gpu", + "description":"An LXD runtime based on Ubuntu focal fossa 20.04 for running nvidia based GPU code", + "keywords":[ + "lxd", + "linux", + "ubuntu", + "focal-fossa", + "bash", + "nvidia", + "GPU" + ], + "responsible":{ + "name":"Marco Lettere", + "email":"m.lettere@gmail.com" + }, + "type":"lxd", + "image":"ubuntu:20.04" +} diff --git a/focal-fossa-gpu/packer.json b/focal-fossa-gpu/packer.json new file mode 100644 index 0000000..01dd8e7 --- /dev/null +++ b/focal-fossa-gpu/packer.json @@ -0,0 +1,22 @@ +{ + "builders": [ + { + "type": "lxd", + "name": "{{ user `name`}}", + "image": "ubuntu:20.04", + "output_image": "{{ user `name` }}:{{user `id`}}", + "publish_properties": { + "description": "{{ user `description`}}" + } + } + ], + "provisioners": [ + "type" : "shell", + "inline" : [ + "apt-get update", + "apt-get --yes install build-essential", + "apt-get --yes install nvidia-cuda-toolkit" + ] + ], + "post-processors": [] +}