Code Monkey home page Code Monkey logo

Comments (2)

ivotron avatar ivotron commented on June 21, 2024

thanks for reporting this @wtraylor! The motivation behind the install.sh script is to address problems that some users have when installing via pip. For users not familiar with python or how pip works, the curl | sh method is convenient, as they have already installed docker (whose installer has better UX than pip), so using install.sh is straight-forward in this scenario.

Regarding the problems with uses: sh inside a container, the specific example can be solved by doing:

steps:
- uses: docker://docker:19.03.10
  args: ["--version"]

More fundamentally, one of the main goals of having container-native pipelines is to make them reproducible. By using sh to invoke commands that are expected to be available in the host, the probability of having a pipeline fail is higher. This is why we note on the documentation that the use of uses: sh should be minimized. Other additional "best practices" for steps with uses: sh would be to 1) only reference paths that are within the workspace or bind-mounted folders (via the dir option); and 2) only invoke POSIX/UNIX commands. These don't guarantee reproducibility but minimize errors. Maybe we should add this to the docs as well.

does this make sense?

from popper.

wtraylor avatar wtraylor commented on June 21, 2024

does this make sense?

Yes, that makes sense. I see that it is very important to provide an easy installation method through install.sh. On the other hand, as long as uses: sh is in Popper’s feature set (whether using it is good practice or not), it should just work, no matter by which method Popper has been installed. I think that is very important.

One way out of the dilemma would be to fail with an error message if Popper running in Docker enconunters uses: sh and kindly ask the user to install Popper through PIP.

from popper.

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.