Skip to content

Instantly share code, notes, and snippets.

@aconz2
Last active June 28, 2024 20:18
Show Gist options
  • Save aconz2/b0511a1764772dfa8df3c8358ae9fa33 to your computer and use it in GitHub Desktop.
Save aconz2/b0511a1764772dfa8df3c8358ae9fa33 to your computer and use it in GitHub Desktop.
run singularity from a container just to test it out
# TODO idk what a good base package is
FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y wget \
cryptsetup \
libfuse-dev \
squashfs-tools \
uidmap \
fuse \
fuse2fs \
crun \
&& \
wget -O /tmp/singularity.deb https://github.com/sylabs/singularity/releases/download/v4.1.3/singularity-ce_4.1.3-noble_amd64.deb && \
dpkg -i /tmp/singularity.deb && \
apt-get remove -y wget && \
apt-get clean && \
rm -f /tmp/singularity.deb
# TODO somehow this all pulls in libjpeg of all things, how is that even right?
# run with something like podman build -t singularity -f singularity.containerfile && podman run --privileged --rm -it localhost/singularity
# inside container: cd /tmp && singularity pull library://lolcow && singularity shell lolcow_latest.sif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment