Skip to content

Instantly share code, notes, and snippets.

@mlin
Last active December 20, 2021 09:42
Show Gist options
  • Save mlin/72a6400f0ac215aeedf6d4001a57b67b to your computer and use it in GitHub Desktop.
Save mlin/72a6400f0ac215aeedf6d4001a57b67b to your computer and use it in GitHub Desktop.
miniwdl udocker-in-docker PoC
FROM ubuntu:20.04
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
wget curl python3-pip python-is-python3
RUN pip3 install --system miniwdl==1.4.2
ENV UDOCKER_VERSION=1.3.1
WORKDIR /usr/local
RUN wget -nv https://github.com/indigo-dc/udocker/releases/download/v${UDOCKER_VERSION}/udocker-${UDOCKER_VERSION}.tar.gz \
&& tar zxf udocker-${UDOCKER_VERSION}.tar.gz \
&& rm udocker-${UDOCKER_VERSION}.tar.gz
ENV PATH=/usr/local/udocker:$PATH
RUN udocker --allow-root run --nobanner --rm ubuntu:20.04 cat /etc/issue
WORKDIR /mnt
ENV MINIWDL__SCHEDULER__CONTAINER_BACKEND=udocker
CMD miniwdl run_self_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment