Closed serbinsh closed 4 years ago
Just to confirm I was able to get it running after all of this
[sserbin@modex singularity-compose-simple]$ singularity-compose up
[sserbin@modex singularity-compose-simple]$ singularity-compose ps
INSTANCES NAME PID IMAGE
1 app 2722056 app.sif
I think your issue is with the example repository https://github.com/singularityhub/singularity-compose-simple and not the code here. I'll transfer it.
The requirements.txt should be in the container - it could be that now that /tmp is bound to the host, it doesn't persist there. But I don't see an error with copying the file! Could you please try copying the file (this line https://github.com/singularityhub/singularity-compose-simple/blob/master/app/Singularity#L13) to somewhere else (e.g., /opt/requirements.txt) and see if that works?
For the install of singularity issue, you'd want to post on https://github.com/hpcng/singularity/issues. This is unrelated to singularity-compose.
@vsoch thanks for the feedback! FYI - I recloned the example, edited app/Singularity to replace /tmp/requirements.txt with /opt/requirements.txt and re-rand singularity-compose build. This time no errors!
Great! So I think using /tmp used to work, but now I think it doesn't! I'll put in a quick PR to change this to /opt. Thanks for the catch!
Ok as for the other issue, I noticed this when using singularity-compose when running this example. However, agreed I should probably move that issue to https://github.com/hpcng/singularity/issues because the problem was that when run as sudo (not by me but singularity-compose runs with sudo to config web) it was unable to find "singularity", the binary until i edited that file.
@vsoch no worries. Perhaps just an issue on my end or CentOS but I don't see why /opt wouldn't work in general....
Please take a look! https://github.com/singularityhub/singularity-compose-simple/pull/2 We will merge when you give the A-OK.
To be clear, opt works fine! It's copying and then using in /tmp that seems to be the issue.
OK, so I
git clone git@github.com:singularityhub/singularity-compose-simple.git
git checkout -b opt origin/updating-tmp-opt
singularity-compose build
singularity-compose up
no errors
Thank you!
Following instructions here: https://singularityhub.github.io/singularity-compose/#/?id=singularity-compose
if I then run
Build finishing fine.
Also FYI - I tried to find a discussion of this but I installed singularity follow the standard build instructions. However no matter what I tried when singularity-compose ran for this example and used sudo, root would not find singularity on the path. I had to edit the sudoers file and specifically
to point to my shared module install directory.
This is perhaps just specific to me but may be helpful to someone else in the future
Running on CentOS 8