Skip to content

Commit

Permalink
updated makefile anddockerfile based on pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ruokun-niu committed Jan 21, 2025
1 parent 81eee07 commit 47f5421
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion control-planes/kubernetes_provider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder
ARG RELEASE
# rust:1.81-bullseye
Expand Down
2 changes: 1 addition & 1 deletion control-planes/kubernetes_provider/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RELEASE ?= 0 # if set to 1, it will use the `release` cargo profile (LTO set to
default: docker-build

docker-build:
docker buildx build .. --build-arg RELEASE=$(RELEASE) -f ./Dockerfile -t $(IMAGE_PREFIX)/kubernetes-provider:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)
docker buildx build .. -f ./Dockerfile -t $(IMAGE_PREFIX)/kubernetes-provider:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)

kind-load:
kind load docker-image $(IMAGE_PREFIX)/kubernetes-provider:$(DOCKER_TAG_VERSION) --name $(CLUSTER_NAME)
Expand Down
2 changes: 1 addition & 1 deletion control-planes/mgmt_api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder
ARG RELEASE
# rust:1.81-bullseye
Expand Down
2 changes: 1 addition & 1 deletion control-planes/mgmt_api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RELEASE ?= 0 # if set to 1, it will use the `release` cargo profile (LTO set to
default: docker-build

docker-build:
docker buildx build ../../ --build-arg RELEASE=$(RELEASE) -f ./Dockerfile -t $(IMAGE_PREFIX)/api:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)
docker buildx build ../../ -f ./Dockerfile -t $(IMAGE_PREFIX)/api:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)

kind-load:
kind load docker-image $(IMAGE_PREFIX)/api:$(DOCKER_TAG_VERSION) --name $(CLUSTER_NAME)
Expand Down
2 changes: 1 addition & 1 deletion query-container/publish-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:fd45a543ed41160eae2ce9e749e5b3c972625b0778104e8962e9bfb113535301 as builder
ARG RELEASE
# rust:1.74
Expand Down
2 changes: 1 addition & 1 deletion query-container/publish-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RELEASE ?= 0 # if set to 1, it will use the `release` cargo profile (LTO set to
default: docker-build

docker-build:
docker buildx build . --build-arg RELEASE=$(RELEASE) -t $(IMAGE_PREFIX)/query-container-publish-api:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)
docker buildx build . -t $(IMAGE_PREFIX)/query-container-publish-api:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)

kind-load:
kind load docker-image $(IMAGE_PREFIX)/query-container-publish-api:$(DOCKER_TAG_VERSION) --name $(CLUSTER_NAME)
Expand Down
2 changes: 1 addition & 1 deletion query-container/query-host/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder
ARG RELEASE
# rust:1.81-bullseye
Expand Down
2 changes: 1 addition & 1 deletion query-container/query-host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RELEASE ?= 0 # if set to 1, it will use the `release` cargo profile (LTO set to
default: docker-build

docker-build:
docker buildx build . --build-arg RELEASE=$(RELEASE) -t $(IMAGE_PREFIX)/query-container-query-host:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)
docker buildx build . -t $(IMAGE_PREFIX)/query-container-query-host:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)

kind-load:
kind load docker-image $(IMAGE_PREFIX)/query-container-query-host:$(DOCKER_TAG_VERSION) --name $(CLUSTER_NAME)
Expand Down
2 changes: 1 addition & 1 deletion query-container/view-svc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder
ARG RELEASE
# rust:1.81-bullseye
Expand Down
2 changes: 1 addition & 1 deletion sources/shared/change-dispatcher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:fd45a543ed41160eae2ce9e749e5b3c972625b0778104e8962e9bfb113535301 as builder
ARG RELEASE
# rust:1.74
Expand Down
2 changes: 1 addition & 1 deletion sources/shared/change-dispatcher/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RELEASE ?= 0 # if set to 1, it will use the `release` cargo profile (LTO set to
default: docker-build

docker-build:
docker buildx build ../../.. --build-arg RELEASE=$(RELEASE) -f ./Dockerfile -t $(IMAGE_PREFIX)/source-change-dispatcher:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)
docker buildx build ../../.. -f ./Dockerfile -t $(IMAGE_PREFIX)/source-change-dispatcher:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)

kind-load:
kind load docker-image $(IMAGE_PREFIX)/source-change-dispatcher:$(DOCKER_TAG_VERSION) --name $(CLUSTER_NAME)
Expand Down
2 changes: 1 addition & 1 deletion sources/shared/change-router/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder
ARG RELEASE
# rust:1.81-bullseye
Expand Down
2 changes: 1 addition & 1 deletion sources/shared/change-router/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RELEASE ?= 0 # if set to 1, it will use the `release` cargo profile (LTO set to
default: docker-build

docker-build:
docker buildx build ../../.. --build-arg RELEASE=$(RELEASE) -f ./Dockerfile -t $(IMAGE_PREFIX)/source-change-router:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)
docker buildx build ../../.. -f ./Dockerfile -t $(IMAGE_PREFIX)/source-change-router:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)

kind-load:
kind load docker-image $(IMAGE_PREFIX)/source-change-router:$(DOCKER_TAG_VERSION) --name $(CLUSTER_NAME)
Expand Down
2 changes: 1 addition & 1 deletion sources/shared/query-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG RELEASE=1
ARG RELEASE=0
FROM rust@sha256:fd45a543ed41160eae2ce9e749e5b3c972625b0778104e8962e9bfb113535301 as builder
ARG RELEASE
# rust:1.74
Expand Down
2 changes: 1 addition & 1 deletion sources/shared/query-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RELEASE ?= 0 # if set to 1, it will use the `release` cargo profile (LTO set to
default: docker-build

docker-build:
docker buildx build ../../.. --build-arg RELEASE=$(RELEASE) -f ./Dockerfile -t $(IMAGE_PREFIX)/source-query-api:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)
docker buildx build ../../.. -f ./Dockerfile -t $(IMAGE_PREFIX)/source-query-api:$(DOCKER_TAG_VERSION) $(DOCKERX_OPTS)

kind-load:
kind load docker-image $(IMAGE_PREFIX)/source-query-api:$(DOCKER_TAG_VERSION) --name $(CLUSTER_NAME)
Expand Down

0 comments on commit 47f5421

Please sign in to comment.