Skip to content

Commit

Permalink
Merge pull request kmesh-net#846 from hzxuzhonghu/version-pass
Browse files Browse the repository at this point in the history
Support passing VERSION to docker when run make docker
  • Loading branch information
kmesh-bot authored Sep 13, 2024
2 parents 56bcc1f + 62b5061 commit 7b8bc94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ uninstall:

.PHONY: build
build:
./kmesh_compile.sh
VERSION=$(VERSION) ./kmesh_compile.sh

.PHONY: docker
docker: build
Expand Down
4 changes: 2 additions & 2 deletions hack/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function get_arch() {
function build_kmesh() {
local container_id=$1
docker exec $container_id git config --global --add safe.directory /kmesh
docker exec $container_id sh /kmesh/build.sh
docker exec $container_id sh /kmesh/build.sh -i
docker exec -e VERSION=$VERSION $container_id sh /kmesh/build.sh
docker exec -e VERSION=$VERSION $container_id sh /kmesh/build.sh -i
docker exec $container_id sh -c "$(declare -f copy_to_host); copy_to_host"
}

Expand Down

0 comments on commit 7b8bc94

Please sign in to comment.