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

Able to set Docker network and custom hosts during build #1057

Open
andrasbacsai opened this issue Jan 28, 2024 · 2 comments
Open

Able to set Docker network and custom hosts during build #1057

andrasbacsai opened this issue Jan 28, 2024 · 2 comments

Comments

@andrasbacsai
Copy link

Feature request

Simply able to set custom docker network (--network) and add hosts (--add-host) to the nixpacks command, so the build process will have access to the internal resources - and in case of a user defined network - and dns.

Motivation

For example, if you build a NodeJS based project with Prisma(prisma.io), the build process is not able to access the database to generate types for the final image.

Contribution

I can help with more details, or even submit a PR.

@brody192
Copy link
Contributor

brody192 commented Jan 28, 2024

Railway does want to make the builder a part of the private network at some point, when that happens there would be no need for any of these configurations!!

@JakeCooper
Copy link
Contributor

Would defs take a PR for this!

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