Gitpod: Question: Why can't i build custom dockerfile?

Created on 4 Feb 2020  路  13Comments  路  Source: gitpod-io/gitpod

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?

docker-build question

All 13 comments

The gitpod layer will add the gitpod user for you

@JesterOrNot

Keeping only FROM flag results in same issue:
image

EDIT: This was using https://github.com/Kreyren/workspace-images/blob/7d8bdffe405a027bfd0566455ff422fe86386b88/exhered-full/Dockerfile

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.

@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!

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

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

@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)

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

@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)

Sorry, that is not the issue the Gitpod layer needs to be adapted for more information please see https://github.com/gitpod-io/gitpod/issues/813#issuecomment-553424655

@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? -- https://github.com/gitpod-io/gitpod/issues/813#issuecomment-553426880

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kreyren picture Kreyren  路  3Comments

kuniss picture kuniss  路  3Comments

mouse484 picture mouse484  路  3Comments

kittaakos picture kittaakos  路  3Comments

LinqLover picture LinqLover  路  3Comments