Skip to content

Commit

Permalink
[DOCS] Fix new API paths and add Docker version (#3018)
Browse files Browse the repository at this point in the history
* Fix new API paths and add Docker version

Signed-off-by: ChrisChinchilla <chris@chronosphere.io>

* Force add missing shortcode

Signed-off-by: ChrisChinchilla <chris@chronosphere.io>
  • Loading branch information
Chris Chinchilla authored and vpranckaitis committed Dec 17, 2020
1 parent 02eb450 commit 81292d5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
4 changes: 3 additions & 1 deletion site/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,13 @@ offlineSearch = false
[params.api]
localCordinator = "http://localhost:7201/"
apiEndpoint = "api/v1/"

# TODO: Can all the below be consolidated?
[[params.versions]]
version = "1.0"
url = ""

[params.releases]
docker = "v1.0.0"

# TODO: Do not like doing this really
[markup]
Expand Down
31 changes: 25 additions & 6 deletions site/content/includes/quickstart-common-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ This quickstart uses the _{{% apiendpoint %}}database/create_ endpoint that crea

You can create [placements](/docs/operational_guide/placement_configuration/) and [namespaces](/docs/operational_guide/namespace_configuration/#advanced-hard-way) separately if you need more control over their settings.

The `namespaceName` argument must match the namespace in the `local` section of the `M3Coordinator` YAML configuration. If you [add any namespaces](/docs/operational_guide/namespace_configuration) you also need to add them to the `local` section of `M3Coordinator`'s YAML configuration.

In another terminal, use the following command.

{{< tabs name="create_placement_namespace" >}}
Expand Down Expand Up @@ -125,13 +123,13 @@ Placement initialization can take a minute or two. Once all the shards have the
{"level":"info","ts":1598367624.03023,"msg":"bootstrapped"}
```

You can check on the status by calling the _{{% apiendpoint %}}placement_ endpoint:
You can check on the status by calling the _{{% apiendpoint %}}services/m3db/placement_ endpoint:

{{< tabs name="check_placement" >}}
{{% tab name="Command" %}}

```shell
curl {{% apiendpoint %}}placement | jq .
curl {{% apiendpoint %}}services/m3db/placement | jq .
```

{{% /tab %}}
Expand Down Expand Up @@ -190,15 +188,36 @@ curl {{% apiendpoint %}}placement | jq .
[Read more about the bootstrapping process](/docs/operational_guide/bootstrapping_crash_recovery/).
{{% /notice %}}

### Ready a Namespace
<!-- TODO: Why?> -->
Once a namespace has finished bootstrapping, you must mark it as ready before receiving traffic by using the _{{% apiendpoint %}}namespace/ready_.

{{< tabs name="ready_namespaces" >}}
{{% tab name="Command" %}}

{{% codeinclude file="docs/includes/quickstart/ready-namespace.sh" language="shell" %}}

{{% /tab %}}
{{% tab name="Output" %}}

```json
{
"ready": true
}
```

{{% /tab %}}
{{< /tabs >}}

### View Details of a Namespace

You can also view the attributes of all namespaces by calling the _{{% apiendpoint %}}namespace_ endpoint
You can also view the attributes of all namespaces by calling the _{{% apiendpoint %}}services/m3db/namespace_ endpoint

{{< tabs name="check_namespaces" >}}
{{% tab name="Command" %}}

```shell
curl {{% apiendpoint %}}namespace | jq .
curl {{% apiendpoint %}}services/m3db/namespace | jq .
```

{{% notice tip %}}
Expand Down
2 changes: 1 addition & 1 deletion site/content/quickstart/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The command below creates a persistent data directory on the host operating syst
{{% tab name="Command" %}}

```shell
docker run -p 7201:7201 -p 7203:7203 --name m3db -v $(pwd)/m3db_data:/var/lib/m3db quay.io/m3db/m3dbnode:latest
docker run -p 7201:7201 -p 7203:7203 --name m3db -v $(pwd)/m3db_data:/var/lib/m3db quay.io/m3db/m3dbnode:{{% docker-version %}}
```

{{% /tab %}}
Expand Down
1 change: 1 addition & 0 deletions site/layouts/shortcodes/docker-version.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ .Site.Params.releases.docker }}

0 comments on commit 81292d5

Please sign in to comment.