Skip to content

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Sep 4, 2025

In oxidecomputer/terraform-provider-oxide#497, we're proposing to run the acceptance tests for the terraform provider against simulated omicron. We're running omicron in a docker container for portability. This PR contains a few small script changes to omicron to make it work in a container:

  • Optionally skip sudo, since some container environments don't include it.
  • Update the example config to listen on 0.0.0.0, so that we can reach simulated omicron from outside the container.

In order to support building omicron in environments that don't include sudo,
like some docker images, add an OMIT_SUDO flag to
./tools/install_builder_prerequisites.sh.
@jmcarp jmcarp force-pushed the jmcarp/prereqs-omit-sudo branch from 7316f71 to 0e0edce Compare September 4, 2025 21:38
@@ -39,7 +39,7 @@ external_dns_servers = ["1.1.1.1", "9.9.9.9"]

[deployment.dropshot_external]
# IP Address and TCP port on which to listen for the external API
bind_address = "127.0.0.1:12220"
bind_address = "0.0.0.0:12220"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels kind of dangerous because we might be exposing this service on any IP on the developer's network, right?

Can your use case provide its own config file for this instead? Or maybe make this an argument to omicron-dev?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to add a flag to override the config file path for omicron-dev.

@jmcarp jmcarp force-pushed the jmcarp/prereqs-omit-sudo branch 2 times, most recently from 5763290 to ac1daff Compare September 5, 2025 17:29
Add a --nexus-config flag to omicron-dev to allow custom configuration for
local testing.
@jmcarp jmcarp force-pushed the jmcarp/prereqs-omit-sudo branch from ac1daff to d667c69 Compare September 5, 2025 17:41
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

Successfully merging this pull request may close these issues.

2 participants