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

Use local servers to generate config file #1003

Merged
merged 6 commits into from
Nov 17, 2021
Merged

Use local servers to generate config file #1003

merged 6 commits into from
Nov 17, 2021

Conversation

mrpalide
Copy link
Contributor

@mrpalide mrpalide commented Nov 15, 2021

Did you run make format && make check? Yes

Fixes skywire-services #423

Changes:

  • Add flag -d to use addresses in localServers.json file as services address.

How to test this PR:

  • make build
  • ./skywire-cli config gen -d for production, or ./skywire-cli config gen -d -t for test.
  • check skywire-config.json for local servers addresses

@@ -31,6 +31,7 @@ var (
skybianConfig bool
hypervisor bool
hypervisorPKs string
localConfig bool
Copy link
Member

Choose a reason for hiding this comment

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

We can rename this to dmsgHttp imo as this a separate feature now.

@@ -43,6 +44,7 @@ func init() {
genConfigCmd.Flags().BoolVarP(&testEnv, "testenv", "t", false, "use test deployment service.")
genConfigCmd.Flags().BoolVarP(&hypervisor, "is-hypervisor", "i", false, "generate a hypervisor configuration.")
genConfigCmd.Flags().StringVar(&hypervisorPKs, "hypervisor-pks", "", "public keys of hypervisors that should be added to this visor")
genConfigCmd.Flags().BoolVarP(&localConfig, "local", "l", false, "use local servers PK instead global")
Copy link
Member

Choose a reason for hiding this comment

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

Consequently this be connect to Skywire Services via dmsg.

@jdknives jdknives merged commit 6fcd7b1 into skycoin:develop Nov 17, 2021
@mrpalide mrpalide deleted the feature/local-servers branch November 17, 2021 12:37
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.

3 participants