Skip to content

Commit

Permalink
PENV-38: relocate spec
Browse files Browse the repository at this point in the history
  • Loading branch information
megge-dream committed Feb 18, 2020
1 parent e90aafc commit 395f906
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WORKDIR /go/src/github.com/insolar/insolar
RUN set -eux; \
groupadd -r insolar --gid=999; \
useradd -r -g insolar --uid=999 --shell=/bin/bash insolar
COPY --from=build /go/src/github.com/insolar/insolar/application/spec/api-exported.yaml /app/api-exported.yaml
COPY --from=build /go/src/github.com/insolar/insolar/application/api/spec/api-exported.yaml /app/api-exported.yaml

# add script and configs required for network bootstrap
ADD scripts/kube/bootstrap/* /app/bootstrap/
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions configuration/apirunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ func NewAPIRunner(admin bool) APIRunner {
return APIRunner{
Address: "localhost:19001",
RPC: "/admin-api/rpc",
SwaggerPath: "application/spec/api-exported.yaml",
SwaggerPath: "application/api/spec/api-exported.yaml",
IsAdmin: true,
}
}
return APIRunner{
Address: "localhost:19101",
RPC: "/api/rpc",
SwaggerPath: "application/spec/api-exported.yaml",
SwaggerPath: "application/api/spec/api-exported.yaml",
IsAdmin: false,
}
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_insolar_configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ func main() {
}

conf.APIRunner.Address = fmt.Sprintf(defaultHost+":191%02d", nodeIndex)
conf.APIRunner.SwaggerPath = "application/spec/api-exported.yaml"
conf.APIRunner.SwaggerPath = "application/api/spec/api-exported.yaml"

conf.AvailabilityChecker.Enabled = true
conf.AvailabilityChecker.KeeperURL = "http://127.0.0.1:12012/check"

conf.AdminAPIRunner.Address = fmt.Sprintf(defaultHost+":190%02d", nodeIndex)
conf.AdminAPIRunner.SwaggerPath = "application/spec/api-exported.yaml"
conf.AdminAPIRunner.SwaggerPath = "application/api/spec/api-exported.yaml"

conf.Metrics.ListenAddress = fmt.Sprintf(defaultHost+":80%02d", nodeIndex)
conf.Introspection.Addr = fmt.Sprintf(defaultHost+":555%02d", nodeIndex)
Expand Down

0 comments on commit 395f906

Please sign in to comment.