Skip to content

Commit

Permalink
Jt-dd/fixes-release-docs (#240)
Browse files Browse the repository at this point in the history
* fixing output

* fixing targetos for releases
  • Loading branch information
jt-dd authored Aug 2, 2024
1 parent 358f2b4 commit 34358f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ RUN --mount=from=binary \
TARGETARCH=$([ "$TARGETARCH" = "amd64" ] && echo "x86_64" || echo "$TARGETARCH"); \
# Use arm64 for darwin
TARGETARCH=$([ "$TARGETARCH" = "arm64" ] && [ "$TARGETOS" != "darwin" ] && echo "aarch64" || echo "$TARGETARCH"); \
# Upper case first letter to match the uname -o output
TARGETOS=$([ "$TARGETOS" = "darwin" ] && echo "Darwin" || echo "$TARGETOS"); \
TARGETOS=$([ "$TARGETOS" = "linux" ] && echo "Linux" || echo "$TARGETOS"); \
cp kubehound* "/out/kubehound-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}$(ls kubehound* | sed -e 's/^kubehound//')"

FROM scratch AS release
Expand Down
8 changes: 5 additions & 3 deletions docs/dev-guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ To list all the available commands, run:
make help
```

Note: if you are running on Linux but you dont want to run `sudo` for `kind` and `docker` command, you can overwrite this behavior by editing the following var in `test/setup/.config`:
* `DOCKER_CMD="docker"` for docker command
* `KIND_CMD="kind"` for kind command
!!! Note
if you are running on Linux but you dont want to run `sudo` for `kind` and `docker` command, you can overwrite this behavior by editing the following var in `test/setup/.config`:

* `DOCKER_CMD="docker"` for docker command
* `KIND_CMD="kind"` for kind command

#### CI Testing

Expand Down

0 comments on commit 34358f7

Please sign in to comment.