Using VSCode Flatpak to launch DevContainers Using Podman with Support for Nvidia CUDA and VSCode's "Container Features" In SilverBlue.
Note: This Setup Works for Machine Learning and GPU Acceleration in Containers
#!/bin/bash | |
# Get a list of all volumes | |
volumes=$(podman volume ls -q) | |
#get timestamp for unique filename | |
timestamp=$(date +"%Y%m%d%H%M%S") | |
# Pause all running containers | |
echo "Pausing containers for backup" | |
podman pause $(podman ps -q) |
image: | |
file: prebuild-devcontainer/Dockerfile | |
tasks: | |
- init: | | |
direnv allow | |
vscode: | |
extensions: | |
- jetpack-io.devbox | |
- ms-python.python |