Singularity | Grids without limits | Grid library
kandi X-RAY | Singularity Summary
kandi X-RAY | Singularity Summary
Grids without limits
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Singularity
Singularity Key Features
Singularity Examples and Code Snippets
Community Discussions
Trending Discussions on Singularity
QUESTION
please would you help me with your suggestions on the following :
<> I am using an account on a SLURM cluster where the storage space of my home directory (ie. /home/user) is maximum 32 GB
<> I am running on the SLURM cluster a singularity container that is working only if the the input files are located in the home directory (/home/user that has 32 GB), instead of using any other location on the SLURM cluster (i.e. /labs/professor where we have 7TB)
The question is : is there any way to set up the large account space (i.e. /labs/professor) as a "home directory" in order for the singularity container to run ?
thanks a lot, with much appreciation,
-- bogdan
...ANSWER
Answered 2021-Jun-07 at 03:13You can change variable HOME
as you like (but i wont recommend that unless you know what things are gonna change)
But simpler way is to mane soft links for the directories you like, which i personally do.
QUESTION
I am trying to use Celery to create periodic tasks in my application. However, I cannot see the outputs of the periodic task that I wrote.
The backend is on a Windows-based redis-server. The server is up and running.
project/celery.py
...ANSWER
Answered 2021-Jun-04 at 09:08You need to start celery beat
, because that him that will read the database and execute your task.
install : https://github.com/celery/django-celery-beat
so in CLI, you need to execute :
QUESTION
Overall, I am trying to render images using Unity on a remote cluster.
The cluster does not have an X server; I don't have sudo permissions, or can start a Docker container, but I can start a Singularity container.
My plan is to create a container that would simulate the X Server. I created the following Singularity definition file:
...ANSWER
Answered 2021-Jun-02 at 05:23As mentioned in a separate discussion, Xvfb
is not supposed to be start through startx
or /usr/bin/X
but rather with the supplied run script.
QUESTION
tried:
...ANSWER
Answered 2021-May-25 at 11:27If you don't need to use yum as the bootstrap, you can easily build it from docker
QUESTION
Everything is inside the title. I have a singularity vagrant box setup on my computing, and I'm looking for a way to generate a .sif (singularity image file) from it.
Do you know if that is possible ?
My vagrant-vm is on windows10.
Any advice or external link will be appreciated ^^
Thanks a lot
...ANSWER
Answered 2021-May-19 at 14:10It is not possible to build a singularity image based on a vagrant VM, though you can use a vagrant VM to do the actual building.
original answer:
You can just vagrant ssh
to the VM and use singularity normally. The user guide docs are fairly comprehensive and searchable.
The Singularity admin guide has info specifically on using Singularity in Vagrant on a Windows host OS. It is not the first place I'd personally expect it to be, but it is there and should get you up and going anyway.
QUESTION
Ubuntu 20.04, downloaded singularity 3.7.3.tar.gz, sha256 matches, unzipped it and followed instructions but keep getting
Failed to get package version. Abort.
Any quick suggestions what I'm missing. I installed GO using a snap, and when I check the version I get
$ go version go version go1.16.3 linux/amd64
What am I missing. Thx, J.
ANSWER
Answered 2021-May-08 at 07:39I found a bug / problem!
In the file
/singularity/mconfig
is some code to check the version?
QUESTION
Is there a way to "translate" singularity containers to a docker recipe file?
I have tried "https://github.com/singularityhub/docker2singularity" but it convert to an image file. However, I want the recipe rather than the image file.
...ANSWER
Answered 2021-May-06 at 20:21Given that some parameters and options are done during execution and not saved to the container, outputting an exact replicate as a recipe file does not seem to be possible. You can always inspect the docker image and convert the Dockerfile to singularity recipe with few tweaks though.
QUESTION
I have a shell script with multiple singularity commands in it
myscript.sh
ANSWER
Answered 2021-Apr-28 at 13:44YOu are connecting to an interactive command shell inside a shell script, what you need is only execute the commands.
QUESTION
I'm building Singularity images in a CI/CD pipeline. I'd like to avoid rebuilding the image if the definition file hasn't changed. So far, the best way that I can see to do this would be to check for changes using something like this:
...ANSWER
Answered 2021-Apr-27 at 13:38Depending on the CI software you're using, you can have certain jobs run only when specific files have changed. I use Gitlab CI, which has the only/except:changes
rule. There is probably something similar for most other CI platforms, but you'll have to check their docs.
Otherwise, your solution is probably the simplest.
QUESTION
I'm familiar with containers, but new to Singularity and I found myself fighting a broken Python installation in a Singularity container tonight. It turns out that this was because $HOME
was being mounted into my container without my knowledge.
I guess that I've developed a liking for the idiom "Explicit is better than implicit" from Python. To me, automatically mounting specific directories is unexpected behavior.
Three questions:
- Why does Singularity default to mounting $HOME, /tmp, /proc, etc?
- So that I can become more comfortable with Singularity, what are some use cases for this behavior?
- I see the
--no-home
flag, but is there a flag to disable all of the default mounts without needing to change the default Singularity configuration?
ANSWER
Answered 2021-Apr-26 at 17:20It's a mixture of design, convenience and technical necessity.
The biggest reason is that, unless you use certain params that say otherwise, Singularity images are read-only filesystems. You need somewhere to write output and any temporary files that get created along the way. Maybe you know to mount in your output dir, but there are all sorts of files that get created / modified / deleted in the background that we don't ever think about. Implicit automounts give reasonable defaults that work in most situations.
Simplistic example: you're doing a big sort
and filter operation on some data, but you're print the results to console so you don't bother to mount in anything but the raw data. But even after some manipulation and filtering, the size of the data exceeds available memory so sort falls back to using small files in /tmp
before being deleted when the process finishes. And then it crashes because you can't write to /tmp
.
You can require a user to manually specify a what to mount to /tmp
on run, or you can use a sane default like /tmp
and also allow that to be overridden by the user (SINGULARITY_TMPDIR
, -B $PWD/fake_tmp:/tmp
, --contain/--containall
). These are all also configurable, so the admins can set sane defaults specific the running environment.
There are also technical reasons for some of the mounts. e.g., /etc/passwd
and /etc/group
are needed to match permissions on the host OS. The docs on bind paths and mounts are actually pretty good and have more specifics on the whats and whys, and even the answer to your third question: --no-mount
. The --contain/--containall
flags will probably also be of interest. If you really want to deep dive, there are also the admin docs and the source code on github.
A simple but real singularity use case, with explanation:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Singularity
Alternatively, Singularity can be installed with Bower (bower install singularity --save)
It can even be installed as an Eyeglass module! (npm install singularitygs --save-dev)
Singularity requires a Sass compiler with full feature parity with the Ruby Sass 3.4.23 implementation in order to work
Grids are made of 3 parts, the Grid definition defining columns, Gutter definition defining spacing between columns, Gutter Style defining how gutters are positioned relative to a column. Singularity supports Symmetric and Asymmetric grids, as well as fluid and fixed gutters. Setting grids up this way puts them into Singularity's Global Grid Context. You can visualize your grid with a CSS Gradient. To do so, turn on debug mode and include the background-grid mixin. Be warned, CSS Gradients aren't 100% reliable visualizations, if there's a discrepancy between the visualization and the actual items on the grid, it's most likely the visualization that's wrong.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page