Skip to content

Commit

Permalink
perf: Add release task for local Docker container execution so I can …
Browse files Browse the repository at this point in the history
…test the release

Signed-off-by: Eden Reich <[email protected]>
  • Loading branch information
edenreich committed Feb 24, 2025
1 parent 66748df commit 8a00250
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.vscode
.env
.coder
cache
19 changes: 19 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,22 @@ tasks:
desc: Install the project
cmds:
- cargo install --path .

release:
desc: Run the release container command locally
cmds:
- |
docker run --rm \
--cpu-shares=4096 \
--memory=6g \
--cpus=4 \
-v $(pwd):/workspace \
-v $(pwd)/cache:/kaniko/cache \
-w /workspace \
gcr.io/kaniko-project/executor:v1.23.2-debug \
--dockerfile=./Dockerfile \
--target=minimal \
--build-arg=TARGET_ARCH=aarch64-unknown-linux-musl \
--no-push \
--no-push-cache \
--tar-path=/app

0 comments on commit 8a00250

Please sign in to comment.