Skip to content

Commit

Permalink
Use single quotes to resolve pwd at the time of invoke (#1915)
Browse files Browse the repository at this point in the history
use single quotes to resolve pwd at the time of invoke
  • Loading branch information
hellt committed Feb 26, 2024
1 parent 5d81555 commit 3ce74bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions docs/manual/clabernetes/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,29 @@ 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="sudo docker run --user $(id -u) \
alias clabverter='sudo docker run --user $(id -u) \
-v $(pwd):/clabernetes/work --rm \
ghcr.io/srl-labs/clabernetes/clabverter"
ghcr.io/srl-labs/clabernetes/clabverter'
```
<!-- --8<-- [end:cv-install] -->
///
///tab | specific version
In case you need to install a specific version:

```bash
alias clabverter="sudo docker run --user $(id -u) \
alias clabverter='sudo docker run --user $(id -u) \
-v $(pwd):/clabernetes/work --rm \
ghcr.io/srl-labs/clabernetes/clabverter:0.0.22"
ghcr.io/srl-labs/clabernetes/clabverter:0.0.22'
```

///
///tab | development version
To use the latest development version of clabverter:

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

///
Expand Down
8 changes: 4 additions & 4 deletions docs/manual/clabernetes/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,24 @@ We use `alpine/helm` container image here instead of installing Helm locally; yo
/// tab | For self-hosted

```bash
alias helm="docker run --network host -ti --rm -v $(pwd):/apps -w /apps \
alias helm='docker run --network host -ti --rm -v $(pwd):/apps -w /apps \
-v ~/.kube:/root/.kube -v ~/.helm:/root/.helm \
-v ~/.config/helm:/root/.config/helm \
-v ~/.cache/helm:/root/.cache/helm \
alpine/helm:3.12.3"
alpine/helm:3.12.3'
```

///
/// tab | For GCP/GKE
GKE clusters require [`gke-gcloud-auth-plugin`][gke-auth-plugin] to be available. Make sure you have it installed and mounted into the container.

```bash hl_lines="2"
alias helm="docker run --network host -ti --rm -v $(pwd):/apps -w /apps \
alias helm='docker run --network host -ti --rm -v $(pwd):/apps -w /apps \
-v /usr/bin/gke-gcloud-auth-plugin:/usr/bin/gke-gcloud-auth-plugin \
-v ~/.kube:/root/.kube -v ~/.helm:/root/.helm \
-v ~/.config/helm:/root/.config/helm \
-v ~/.cache/helm:/root/.cache/helm \
alpine/helm:3.12.3"
alpine/helm:3.12.3'
```

///
Expand Down

0 comments on commit 3ce74bf

Please sign in to comment.