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

obsservice: update README #84572

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions pkg/obsservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,24 @@ the future).
Build with

```shell
go build ./pkg/obsservice/cmd/obsservice
./dev build obsservice
```

or
which will include the DB Console UI served on the HTTP port. This adds the
`"--config=with_ui"` bazel flag that embeds the UI.

You can also build without the UI using:

```shell
./dev build pkg/obsservice/cmd/obsservice
```

which will produce a binary in `./bin/obsservice`.

## Running

Assuming you're already running a local CRDB instance:

```shell
obsservice --http-addr=localhost:8081 --crdb-http-url=http://localhost:8080 --ui-cert=certs/cert.pem --ui-cert-key=certs/key.pem --ca-cert=certs/ca.crt
```
Expand Down
2 changes: 1 addition & 1 deletion pkg/obsservice/cmd/obsservice/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func main() {
RootCmd.PersistentFlags().StringVar(
&sinkPGURL,
"sink-pgurl",
"postgresql://root@andrei-desktop:26257/defaultdb?sslmode=disable",
"postgresql://root@localhost:26257/defaultdb?sslmode=disable",
"PGURL for the sink cluster.")

if err := RootCmd.Execute(); err != nil {
Expand Down