kaczmarj / apptainer-in-docker

Apptainer in Docker!
Apache License 2.0
43 stars 9 forks source link

update to apptainer #2

Closed satra closed 2 years ago

satra commented 2 years ago

@kaczmarj in case you want to update to apptainer fully here is the non-alpine version

FROM golang:1.17.7 as builder

ARG VERSION="1.0.0"

WORKDIR $GOPATH/src/github.com/apptainer
RUN apt-get update && apt-get install -y \
    build-essential \
    uuid-dev \
    libgpgme-dev \
    squashfs-tools \
    libseccomp-dev \
    wget \
    pkg-config \
    git \
    cryptsetup-bin
RUN wget https://github.com/apptainer/apptainer/releases/download/v${VERSION}/apptainer-${VERSION}.tar.gz && \
    tar -xzf apptainer-${VERSION}.tar.gz && \
    cd apptainer-${VERSION} && \
    ./mconfig --prefix=/opt/apptainer && \
    make -C ./builddir && \
    make -C ./builddir install

FROM ubuntu
USER root
COPY --from=builder /opt/apptainer /opt/apptainer
kaczmarj commented 2 years ago

thank you! i will update this repo accordingly.