Giter Club home page Giter Club logo

Comments (15)

vsoch avatar vsoch commented on June 18, 2024

In that it's a singularity build with a sandbox, it's probably no longer necessary (but perhaps needed to be). Have you tried removing it and building a container?

from docker2singularity.

nathanweeks avatar nathanweeks commented on June 18, 2024

Hi @vsoch , following your suggestion, I removed scripts/env/10-docker2singularity.sh, built a modified docker2singularity image, and used it to export Debian, CentOS, and Alpine Singularity images. In all cases their /.singularityenv.d/env/10-docker.sh set PATH to what it would have been set to when executing a corresponding Docker container via docker run -it --entrypoint=/bin/sh <IMAGE>. So 10-docker2singularity.sh does seem unnecessary at this point?

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

It does indeed!

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

Since the branches each correspond to a different Singularity version (unfortunately many are different) to move forward, you'd want to choose the branch to edit, and PR to it. The master branch (should be) the latest version of the branches. It's a bit messy, but I'm not sure there is a better way to go about it.

from docker2singularity.

nathanweeks avatar nathanweeks commented on June 18, 2024

OK, will do. Should the PR go to the 3.2.1 branch?

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

Yes! And after that, I'll PR 3.2.1 to master so it's up to date. Thank you!

from docker2singularity.

nathanweeks avatar nathanweeks commented on June 18, 2024

Is the v3.2.1 branch supposed to work as-is? I get the following error:

$ git checkout v3.2.1
$ docker build -t docker2singularity-local:v3.2.1-orig .
...
$ docker run -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/singularity:/output --privileged -t --rm docker2singularity-local:v3.2.1-orig  alpine:3.10.1
docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown.

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

Sounds like the entrypoint file wasn't added?

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

I'll be able to test this in a few minutes, sorry doing a million things right now.

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

Can you try with singularityware/docker2singularity:v3.1

from docker2singularity.

nathanweeks avatar nathanweeks commented on June 18, 2024

That one works:

$ git checkout v3.1
$ docker build -t docker2singularity-local:v3.1 .
...
$ docker run -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/singularity:/output --privileged -t --rm docker2singularity-local:v3.1  alpine:3.10.1
...
INFO:    Build complete: /tmp/alpine_3.10.1-2019-07-11-5def832712fb.simg
(10/10) Moving the image to the output folder...
      2,752,512 100%   50.86MB/s    0:00:00 (xfr#1, to-chk=0/1)
Final Size: 3MB

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

Ah interesting, I think it's likely that I started working on that branch, but then didn't actually finish. The last released version is v3.1.

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

Let's do this - start with v3.1, and then pull request to v3.2.1.

from docker2singularity.

nathanweeks avatar nathanweeks commented on June 18, 2024

Will do.

from docker2singularity.

vsoch avatar vsoch commented on June 18, 2024

Fixed in #63 , building now to release and then update master.

from docker2singularity.

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.