GithubHelp home page GithubHelp logo

Comments (7)

fac2003 avatar fac2003 commented on May 26, 2024

You can find an example of this here:
https://singularity-hub.org/containers/1406/log

INFO:shub_builder:Checking out branch master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
INFO:shub_builder:Checking out commit 8336d1ffac6e1dc6a9f76c0cac51815547d1310b
INFO:shub_builder:Found spec file Singularity in repository
DEBUG:shub_builder:Building in directory /tmp/tmpd_4yb0l7
DEBUG:shub_builder:Spec file set to Singularity
DEBUG:shub_builder:Spec file for build should be in /tmp/tmpd_4yb0l7/Singularity
tar: var/cache/yum/x86_64/7/updates/gen/primary_db.sqlite: Wrote only 5120 of 10240 bytes
tar: var/lib/rpm/Basenames: Wrote only 8192 of 10240 bytes
tar: var/lib/rpm/Dirnames: Wrote only 9216 of 10240 bytes
tar: var/lib/rpm/Packages: Wrote only 9728 of 10240 bytes
tar: var/lib/rpm/Requirename: Wrote only 2560 of 10240 bytes
tar: var/lib/rpm/Sha1header: Wrote only 1024 of 5120 bytes
tar: var/lib/yum/history/2017-06-05/13: Cannot mkdir: No space left on device
tar: var/lib/yum/history/2017-06-05/13: Cannot mkdir: No space left on device
tar: var/lib/yum/history/2017-06-05/13/config-main: Cannot open: No such file or directory
tar: var/lib/yum/history/2017-06-05/13: Cannot mkdir: No space left on device
tar: var/lib/yum/history/2017-06-05/13/config-repos: Cannot open: No such file or directory
tar: var/lib/yum/history/2017-06-05/13: Cannot mkdir: No space left on device
tar: var/lib/yum/history/2017-06-05/13/saved_tx: Cannot open: No such file or directory
tar: var/lib/yum/history/history-2017-06-05.sqlite: Wrote only 1024 of 10240 bytes
tar: var/lib/yum/rpmdb-indexes/pkgtups-checksums: Wrote only 6656 of 10240 bytes

and so on, but the container looks complete:
singularity_hub

from singularityhub.github.io.

vsoch avatar vsoch commented on May 26, 2024

Hey @fac2003 ! This is unlikely to be the instance, but the container itself. Try setting the size to a larger one in build settings and see if it completes. The reason it is deemed to be ok is because the extracted files don't seem to influence some kind of image being successfully built, which runs with a simple ls command.

from singularityhub.github.io.

fac2003 avatar fac2003 commented on May 26, 2024

Thanks for the tip. It's a problem that you can't trust the image was successfully built by just looking at the UI. S
In this case the %post statements never ran, that seems a bit strange to consider it successful.

from singularityhub.github.io.

vsoch avatar vsoch commented on May 26, 2024

I can't implement a test that is general enough to fit all containers - but there is a solution! This is exactly why we have the %test section - you can write tests and it will fail if they don't pass. Do you want to give it a try?

from singularityhub.github.io.

fac2003 avatar fac2003 commented on May 26, 2024

Thanks, I am trying this now. The documentation of the %test section is lacking in specifics. I assume returning a non zero status is an error code, but I would have liked this written in the doc (http://singularity.lbl.gov/docs-bootstrap).

from singularityhub.github.io.

vsoch avatar vsoch commented on May 26, 2024

Definitely! Here is the (probably lacking) test section - http://singularity.lbl.gov/docs-bootstrap#test if you have specifics you are wanting to add, I'd be happy to tweak! I think that's about the extent of what test is, so it's all that I wrote :P

from singularityhub.github.io.

vsoch avatar vsoch commented on May 26, 2024

I added some docs here https://github.com/singularityhub/singularityhub.github.io/wiki/Generate-Images#add-tests to make it easier to find this information as well, at least the bits relevant to Singularity Hub!

from singularityhub.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.