-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Epic: Re-use existing project scripts (Makefile, CI, Dockerfile) #7627
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
Comments
Sounds a lot like the project configuration inference @gitpod-io/engineering-meta just shipped, no? |
See also #7392 |
True. 🎯 I read this like a collection of feature requests for that feature (the 4 bullet points) & a discussion about approach (1. vs 2.).
This sounds like a good idea in principle, but I wonder:
For example, if we look at two of our repositories (one using GitHub Actions, another using CircleCI), I don't see much that we can use to infer a relevant dev environment:
The inferrer actually does something super basic already (i.e. "Is there a Makefile? If yes --> add task gitpod/components/server/src/config/config-inferrer.ts Lines 105 to 115 in 94f3b38
We could probably be smarter here, e.g. if we know common Makefile rule names used for development (e.g.
(C.f. linked issue)
Interesting. I guess we could detect files called Does this always make sense? Would be cool to research this, e.g. anecdotally with a few example repositories.
My 2 cents are that 2. makes the most sense currently (i.e. generate an explicit Longer-term, if there is a standard that emerges, I agree that we should play nice and participate in the standardization effort + natively support the new standard early. |
Yep—it definitely relates! The issue originates from some usability conversations, and conversations with/in the community. As @jankeromnes mentioned, this issue is more on a higher-level than inference for specific config (unless our inference "engine" is somewhat generic / almost plugin-oriented. This issue is more about Gitpod's philosophy on integrating existing scripts. If/when we come to a more concrete decision we can update the issue/community on our stance here 🙏 🚀 Also, all great points/thoughts @jankeromnes ! 🙏 |
Yes please! I searched for and found this issue because my naive attempt to use "Existing Docker configurations" by simply referencing the project Dockerfile in |
Hey @maphew, I think you were trying to use the alpine dockerfiles that you have on that repo, please keep in mind that we don't support alpine images as the base for now. You should be good to go with ubuntu ones. |
@axonasif I was using ubuntu. I've since figured how to use the published image and then modify it post boot with RUN commands, so I'm not blocked anymore (tho' I still haven't cracked the nut of getting sudo to work passwordless):
Here's my failed attempt to use the dockerfile in place: maphew/gdal@bcf888d |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Uh oh!
There was an error while loading. Please reload this page.
For most projects, they already have existing scripts for building/starting their projects [1]. Gitpod should be smart about detecting and re-using these scripts without forcing developers to re-write a new gitpod.yml file. We already have auto-detection for things like NPM commands, but we also should look at other configuration set up's like:
There are two broad options (for the different configuration files):
Related [1][2][3]
The text was updated successfully, but these errors were encountered: