diff options
-rw-r--r-- | apps/buildah-dragonfly.sh | 11 | ||||
-rw-r--r-- | apps/run-dragonfly.sh | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/apps/buildah-dragonfly.sh b/apps/buildah-dragonfly.sh new file mode 100644 index 0000000..a55041c --- /dev/null +++ b/apps/buildah-dragonfly.sh @@ -0,0 +1,11 @@ +#! /usr/bin/env bash + +set -o errexit + +container=$(buildah from pycuda:latest) + +buildah config --env LANG="C.UTF-8" --env LC_ALL="C.UTF-8" --env TERM="xterm" $container +buildah run $container sh -c 'apt-get install -y libxcomposite-dev libxcursor-dev libxdamage-dev libxtst6 libpci3' + + +buildah commit --format docker $container dragonfly:latest diff --git a/apps/run-dragonfly.sh b/apps/run-dragonfly.sh new file mode 100644 index 0000000..a69d9a7 --- /dev/null +++ b/apps/run-dragonfly.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +set -o errexit + + +#podman run --name "dragonfly" -it --rm --cap-add SYS_ADMIN --cap-add=SYS_PTRACE --hooks-dir /usr/share/containers/oci/hooks.d/ -v /home/matin/ORS:/home/matin/ORS -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=${DISPLAY} --network=host dragonfly:latest + +podman run --name "dragonfly" -it --rm --cap-add SYS_ADMIN --cap-add=SYS_PTRACE --hooks-dir /usr/share/containers/oci/hooks.d/ -v /home/matin/ORS:/home/matin/ORS -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=${DISPLAY} dragonfly:latest |