Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are the Dockerfiles? 😄 #653

Closed
dpprdan opened this issue Jul 10, 2023 · 5 comments
Closed

Where are the Dockerfiles? 😄 #653

dpprdan opened this issue Jul 10, 2023 · 5 comments

Comments

@dpprdan
Copy link
Contributor

dpprdan commented Jul 10, 2023

The https://github.com/devcontainers/images/blob/main/src/python/README.md reads:

Alternatively, you can use the contents of Dockerfile to fully customize the your container's contents or build for a container architecture the image does not support.

I am assuming that this refers to a Dockerfile in this repo? However I cannot find it anywhere (apart from https://github.com/devcontainers/images/blob/main/src/python/.devcontainer/Dockerfile which doesn't seem to be complete? E.g. I don't see where the dependencies are added).

Put differently: Is it possible to view (example-)Dockerfiles of the final images?

@dpprdan dpprdan changed the title Python Dockerfile Where are the Dockerfiles? 😄 Jul 10, 2023
@samruddhikhandale
Copy link
Member

Hi 👋

I am assuming that this refers to a Dockerfile in this repo?

Yes, that statement is pointing to the Dockerfile you mentioned.

However I cannot find it anywhere (apart from https://github.com/devcontainers/images/blob/main/src/python/.devcontainer/Dockerfile which doesn't seem to be complete?

Dev container Features are doing rest of the work, see here. Look at https://containers.dev/implementors/features/ for more information.

E.g. I don't see where the dependencies are added).

They are installed by the Python Feature, in here.

@dpprdan Let me know if that helps clear your doubts, or happy to answer any other questions.

Alternatively, you can use the contents of Dockerfile to fully customize the your container's contents or build for a container architecture the image does not support.

@Chuxel We copied over the Readme file from https://github.com/microsoft/vscode-dev-containers/tree/main/containers/python-3 when Features didn't exist and base.dockerfile was doing all the work. I wonder if we should replace current statement to 👇 (to avoid confusions) or remove that line? Any thoughts? // cc @bamurtaugh

Alternatively, you can use the contents of Dockerfile devcontainer to fully customize the your container's contents or build for a container architecture the image does not support.

@bamurtaugh
Copy link
Member

I like your idea to update the wording @samruddhikhandale! Maybe something like:

Alternatively, you can use the Dockerfile in this template's image to fully customize the your container's contents or build for a container architecture the image does not support. The image's definition, including its Dockerfile, can be found in the [devcontainers/images](https://github.com/devcontainers/images/tree/main/src) repo.

I kept the last sentence more general to avoid needing to link every readme uniquely, though if we're willing to do that and don't think the links will break, that'd also probably help.

@samruddhikhandale
Copy link
Member

@bamurtaugh we could dynamically update Dockerfile to point to the actual file (eg. Dockerfile).

My main question is, if we should replace Dockerfile word to .devcontainer as we use the entire folder to create/customize the dev container. With @dpprdan, I believe he was confused because we mention one should only update Dockerfile, but the actual logic of this image is in .devcontainer.json file (ie. python Feature)🤔

@bamurtaugh
Copy link
Member

My main question is, if we should replace Dockerfile word to .devcontainer as we use the entire folder to create/customize the dev container.

Oh got it! That's a great point. I'm in favor of updating to .devcontainer with the reasoning you mention.

@dpprdan
Copy link
Contributor Author

dpprdan commented Jul 12, 2023

@samruddhikhandale Thanks, that is really helpful.

I took the liberty to propose a few more changes in #656, maybe you two want to have a look at that?
Feel free to incorporate those changes (or the ones you find worthwhile) into #654.

@dpprdan dpprdan closed this as completed Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants