Giter VIP home page Giter VIP logo

Comments (11)

gdams avatar gdams commented on August 17, 2024

Is there a reason that you couldn't install python-is-python3 yourself at the top of your dockerfile?

from containers.

pgerhard avatar pgerhard commented on August 17, 2024

We are running our builds in K8s using Jenkins and we are using the Adoptium image as the container in which to run the Java builds. If possible, I would like to avoid having to build my own container just for this tiny package, and since it seemed like a change which would in line with what the Ubuntu release notes suggest, I thought I'd ask πŸ˜ƒ

from containers.

karianna avatar karianna commented on August 17, 2024

Hi @pgerhard - The Ubuntu release notes suggest users install Python 3 themselves. As we're trying to provide the smallest diff from a bare-bones base image as possible I'm afraid we'll have to ask users to add this for themselves.

from containers.

pgerhard avatar pgerhard commented on August 17, 2024

@karianna thats fine by me. However I curious as to where in the release notes you found the passage stating that users should install Python 3 themselves. In case it really says this then I am surprised that the Eclipse Temurin images provide Python 3 by default (/usr/bin/python3 is already there). This appears to contradict your statement

from containers.

karianna avatar karianna commented on August 17, 2024

Hmmm I need to go and reread clealry!

from containers.

karianna avatar karianna commented on August 17, 2024

I was referring to the section which reads:

Users who require /usr/bin/python for compatibility on newly-installed systems are encouraged to install the python-is-python3 package, for a /usr/bin/python pointing to python3 instead.

My interpretation of that is its steps to take if you (the user) want Python on your base O/S image.

from containers.

pgerhard avatar pgerhard commented on August 17, 2024

@karianna ah ok. Well you technically already have Python installed, its is available as /usr/bin/python3 by default. All the package python-is-python3 package does is create a symlink that points /usr/bin/python (which is NOT available by default) to /usr/bin/python3.
This really is a quality of life thing, but since must people are used to invoking a tool (such as a Java, Node and also Python) using the name of the tool (such as java -version) and not having to specify a version, I think it would be a nice addition to this image if Python behaved the same way as the others. Its not a huge deal having to write python3 -v instead of python -v but it does appear to break with convention when compared to the other tools/languages, such as Java.

from containers.

karianna avatar karianna commented on August 17, 2024

from containers.

pgerhard avatar pgerhard commented on August 17, 2024

@karianna No worries and also thank you for taking the time to respond me after this was issue is technically already closed. Speaking of which, since you're checking with the other maintainers, should this be re-opened for the time being?

from containers.

karianna avatar karianna commented on August 17, 2024

@gdams - Can we weave this into our auto-generated images for official DockerHub?

from containers.

pgerhard avatar pgerhard commented on August 17, 2024

After the PRs have been merged I'll go ahead and close this. @gdams if you have any objections please let me know and thank you for all the work you do on this project πŸ˜ƒ

from containers.

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.