-
Notifications
You must be signed in to change notification settings - Fork 238
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
Support for --add-host #1119
Support for --add-host #1119
Conversation
Ideally I also would like to add |
This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Not stale |
Updated the label, going to reflag this internally. Our main maintainer for this repo is on PTO so apologies for the delay. |
No need for apologies, @ndneighbor. Appreciate this package and only happy to contribute! |
This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Not stale |
Can you fix lint issues and other stuff? |
I was not aware of these linting issues before, I will get right on it! |
I believe there are no linting issues anymore, running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really awesome! Thanks for the PR :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really awesome! Thanks for the PR :D
Sorry about the conflicts 😬 There also seems to be some missing tests and linting errors. Could you please
After this you should be all good to go |
@coffee-cup I think this should do! :D |
I'll dig into the failing test later tonight, or is this something you caused? I'm not sure. |
I fixed one of the snapshot tests (by running |
Interesting, the tests dont fail locally. I'll spin up a VM with ubuntu and try there. I'll ping you once done :D |
I'm not done yet, I forgot something! |
@coffee-cup In order to fully understand what's happening, I have some questions;
|
[variables]
REMOTE_URL = '...' |
Hi there, Cheers, now I understand. It seems that on MacOS Docker, the |
It seems Docker on Linux is much more strict when it comes to adding hosts. I've added However, I can understand if you'd like to see that as an argument for Nixpacks itself. Let me know what you prefer, then I will make sure to add it in as well. Would be nice though to see if this fixes the CI as well. |
Looks great and all tests passing! I don't think adding the Thanks again! |
This PR adds support for Nixpacks' build argument
--add-host
.--add-host
allows multiple hosts being added, just like with thedocker build
.For example:
nixpacks build --add-host nginx:127.0.0.1 --add-host postgres:127.0.0.1
.I've added tests to validate that:
It's my first time doing something with Rust, so code might not be up to your standards. However, I am always open for improvements!