Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use host DNS for docker in tests #132

Open
ahayzen opened this issue Jun 1, 2024 · 2 comments
Open

Use host DNS for docker in tests #132

ahayzen opened this issue Jun 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ahayzen
Copy link
Owner

ahayzen commented Jun 1, 2024

Inside docker is unable to resolve vps or lab hosts as they use their own DNS and do not know about the /etc/hosts injections by nixos tests.

Try to make docker use the host DNS so that it can resolve these locations.

This is needed to be able to test rathole connections.

@ahayzen ahayzen added the bug Something isn't working label Jun 1, 2024
@ahayzen
Copy link
Owner Author

ahayzen commented Jun 1, 2024

vm-test-run-vps-test> 127.0.0.1 localhost
vm-test-run-vps-test> ::1 localhost
vm-test-run-vps-test> 127.0.0.2 lab
vm-test-run-vps-test> ::1 lab
vm-test-run-vps-test> vps actual.ahayzen.com bitwarden.ahayzen.com ahayzen.com yumekasaito.com
vm-test-run-vps-test> 192.168.1.1 backup
vm-test-run-vps-test> 192.168.1.2 lab
vm-test-run-vps-test> 192.168.1.3 vps

@ahayzen
Copy link
Owner Author

ahayzen commented Dec 1, 2024

Also check if anything in https://wiki.nixos.org/wiki/NixOS_VM_tests can improve our tests

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant