Skip to content

Instantly share code, notes, and snippets.

@vsoch
Created July 11, 2019 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsoch/aad462a17a8dce877a0da207a0c1862a to your computer and use it in GitHub Desktop.
Save vsoch/aad462a17a8dce877a0da207a0c1862a to your computer and use it in GitHub Desktop.
Apache with Singularity and without sudo

Apache with Singularity

Start with this recipe

Bootstrap: docker
From:httpd:2.4.37
%startscript
httpd-foreground

Build the container:

$ sudo singularity build apache.sif Singularity

Next, make a logs directory to bind to the host:

$ mkdir -p logs

And start the instance and bind the folder for logs.

sudo singularity instance start --bind /tmp/logs:/usr/local/apache2/logs --net --network-args "portmap=80:80/tcp" apache.sif apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment