Skip to content

Question: Why can't i build custom dockerfile? #1179

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

Closed
Kreyren opened this issue Feb 4, 2020 · 13 comments
Closed

Question: Why can't i build custom dockerfile? #1179

Kreyren opened this issue Feb 4, 2020 · 13 comments
Labels

Comments

@Kreyren
Copy link

Kreyren commented Feb 4, 2020

I'm trying to build following: https://github.com/Kreyren/workspace-images/blob/b965c4dd0e8f680f8e785740f8c9070fd87c54b7/exhered-full/Dockerfile which results in:

image

Based on gitpod/gitpod-full:latest image i assume that there is some gitpod-specific post-built self-test that fails if apt is not detected? Or do i need to configure dazzle?

@JesterOrNot
Copy link
Contributor

The gitpod layer will add the gitpod user for you

@Kreyren
Copy link
Author

Kreyren commented Feb 4, 2020

@jankeromnes
Copy link
Contributor

Hm, we seem to be censoring Gitpod layer errors. That's a shame, because it hides explicit error messages and thus prevents users from understanding/fixing the underlying problem.

I'll try to find out more about this.

@jankeromnes
Copy link
Contributor

@Kreyren I'm not exactly sure what exherbo/exherbo-x86_64-pc-linux-gnu-base:latest is based on, but for Gitpod we currently try to support Debian and Alpine-based images, and Gitpod expects a few things from the image:

  • The packages dpkg-query and apt-get for Debian, or apk for Alpine, as well as bash
  • The commands addgroup, useradd, adduser

Then there are also a lot of language-specific tools in gitpod/workspace-full, without which the IDE may not be fully functional, so you may need to debug your image iteratively by trial & error.

Hope this helps!

@jankeromnes
Copy link
Contributor

jankeromnes commented Feb 4, 2020

See also #318 and #780

@Kreyren
Copy link
Author

Kreyren commented Feb 5, 2020

I'm not exactly sure what exherbo/exherbo-x86_64-pc-linux-gnu-base:latest is based on -- @jankeromnes

it's a docker image provided by exherbo**.org** which is source-based linux distribution with portage-inspired package manager

The packages dpkg-query and apt-get for Debian, or apk for Alpine -- @jankeromnes

Is there a way to disable this check so that it would allow me to build it on a non-apt system? Exherbo is using paludis (https://paludis.exherbo.org/) and different toolchain management.

Then there are also a lot of language-specific tools in gitpod/workspace-full, without which the IDE may not be fully functional, so you may need to debug your image iteratively by trial & error. -- @jankeromnes

I am aware of this and i wanted to adapt exherbo image for it, but from what i understand gitpod won't built it for me to make expected development.

See also #318 and #780 -- @jankeromnes

Info provided doesn't seem to help


Using https://github.com/Kreyren/workspace-images/blob/06552d128bbef312b4a9977e0ad9c8a5fe3ded08/exhered-full/Dockerfile results in same issue

@JesterOrNot
Copy link
Contributor

@Kreyren but what linux distro is it i.e Alpine, debian, ubuntu, arch linux

@Kreyren
Copy link
Author

Kreyren commented Feb 5, 2020

@JesterOrNot Nether of above it's Exherbo Linux using Paludis package manager (https://exherbo.org/)

Paludis is portage-inspired package manager (gentoo's using portage)

@JesterOrNot
Copy link
Contributor

I see, at this time we only support Debian, Ubuntu, and Alpine based images see #813

@Kreyren
Copy link
Author

Kreyren commented Feb 5, 2020

@JesterOrNot I would like to self-maintain this in gitpod. Can you add this to "whitelist" or something so that it would allow me to build it?

EDIT: I believe that this would help me a lot with development using gitpod ^-^ (i hate apt-base distros to use for development)

@JesterOrNot
Copy link
Contributor

Sorry, that is not the issue the Gitpod layer needs to be adapted for more information please see #813 (comment)

@Kreyren
Copy link
Author

Kreyren commented Feb 5, 2020

@JesterOrNot I'm reading through, but i don't understand what is the issue is there something on my end that i can do or contribute to or is this something that needs to be done by gitpod on closed-source solution assuming:

How can the community help bring this support to gitpod? -- #813 (comment)

@Kreyren
Copy link
Author

Kreyren commented Feb 9, 2020

Closed in favor of #813

@Kreyren Kreyren closed this as completed Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants