github.com/apptainer/singularity@v3.1.1+incompatible/examples/arch/README.md (about)

     1  # Arch for Singularity
     2  
     3  This bootstrap spec will generate an arch linux distribution using Singularity 2.3 (current development branch). Note that you can also just bootstrap a Docker image:
     4  
     5  
     6  If you want to move forward with the raw, old school, jeans and hard toes bootstrap, here is what to do. I work on an Ubuntu machine, so I had to use a Docker Arch Linux image to do this. This first part you should do on your local machine (if not arch linux) is to use Docker to interactively work in an Arch Linux image. If you don't want to copy paste the build spec file, you can use `--volume` to mount a directory from your host to a folder in the image (I would recommend `/tmp` or similar). Here we run the docker image:
     7  
     8  
     9  ```bash
    10  docker run -it  --privileged pritunl/archlinux bash
    11  ```
    12  
    13  ```bash
    14  pacman -S -y git autoconf libtool automake gcc python make sudo vim arch-install-scripts wget
    15  git clone https://github.com/sylabs/singularity
    16  cd singularity
    17  git checkout -b development
    18  git pull origin development
    19  ./autogen.sh
    20  ./configure --prefix=/usr/local
    21  ```
    22  
    23  You can add the [Singularity](Singularity) build spec here, or cd to where it is if you have mounted a volume.
    24  
    25  ```bash
    26  cd /tmp
    27  singularity create arch.img
    28  sudo singularity bootstrap arch.img Singularity
    29  ```
    30  
    31  That should do the trick!