Skip to content

Commit

Permalink
Update install.md (#1889)
Browse files Browse the repository at this point in the history
* Update install.md

the modified commands only work as root (can't chown otherwise) and this version should work as anyone:  Wouldn't it be easier to run the container as a specific user, namely whoever is the current user?  

Also replaced pwd fork for ${PWD}.

Suggestion for the future: the whole mkdir converted is really ugly IMHO; might be better to append a suffix to the file instead.

* Update install.md

bug fix :) removed ${GID}.

* Update install.md

$() is required as the eval has to happen at runtime. modified.

* Update install.md

typo fix

* remove converted dir and add always pull

---------

Co-authored-by: Roman Dodin <[email protected]>
  • Loading branch information
ckuhtz and hellt authored Feb 15, 2024
1 parent 0713e55 commit 49fd647
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/manual/clabernetes/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To upgrade to the latest version re-run the installation command and the latest
To install a specific clabernetes version add `--version` flag like so:

```bash
helm upgrade --version 0.0.22 --install \
helm upgrade --version 0.0.25 --install \
clabernetes oci://ghcr.io/srl-labs/clabernetes/clabernetes
```

Expand Down Expand Up @@ -66,8 +66,8 @@ Clabverter is versioned in the same way as Clabernetes, and the easiest way to u
///tab | latest version
<!-- --8<-- [start:cv-install] -->
```bash title="set up <code>clabverter</code> alias"
alias clabverter="mkdir -p converted && chown -R 65532:65532 converted && \
sudo docker run -v $(pwd):/clabernetes/work --rm \
alias clabverter="sudo docker run --user $(id -u) \
-v $(pwd):/clabernetes/work --rm \
ghcr.io/srl-labs/clabernetes/clabverter"
```
<!-- --8<-- [end:cv-install] -->
Expand All @@ -76,8 +76,8 @@ alias clabverter="mkdir -p converted && chown -R 65532:65532 converted && \
In case you need to install a specific version:

```bash
alias clabverter="mkdir -p converted && chown -R 65532:65532 converted && \
sudo docker run -v $(pwd):/clabernetes/work --rm \
alias clabverter="sudo docker run --user $(id -u) \
-v $(pwd):/clabernetes/work --rm \
ghcr.io/srl-labs/clabernetes/clabverter:0.0.22"
```

Expand All @@ -86,9 +86,8 @@ alias clabverter="mkdir -p converted && chown -R 65532:65532 converted && \
To use the latest development version of clabverter:

```bash
sudo docker pull ghcr.io/srl-labs/clabernetes/clabverter:dev-latest && \
alias clabverter="mkdir -p converted && chown -R 65532:65532 converted && \
sudo docker run -v $(pwd):/clabernetes/work --rm \
alias clabverter="sudo docker run --pull always --user $(id -u) \
-v $(pwd):/clabernetes/work --rm \
ghcr.io/srl-labs/clabernetes/clabverter:dev-latest"
```

Expand Down

0 comments on commit 49fd647

Please sign in to comment.