Skip to content

Commit

Permalink
change app name
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak committed Oct 2, 2023
1 parent 12272cd commit 502cabd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FILTER_GATEWAY_IMAGE = $(NAME)-filter-gateway
HELM_OPERATOR_IMAGE = $(NAME)-helm-operator
LB_GATEWAY_IMAGE = $(NAME)-lb-gateway
LOADTEST_IMAGE = $(NAME)-loadtest
INDEX_JOB_CORRECTION_IMAGE = $(NAME)-index-job-correction
INDEX_CORRECTION_IMAGE = $(NAME)-index-correction
MANAGER_INDEX_IMAGE = $(NAME)-manager-index
MAINTAINER = "$(ORG).org $(NAME) team <$(NAME)@$(ORG).org>"

Expand Down
4 changes: 2 additions & 2 deletions Makefile.d/docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ docker/build/loadtest:

.PHONY: docker/name/index-job-correction
docker/name/index-job-correction:
@echo "$(ORG)/$(INDEX_JOB_CORRECTION_IMAGE)"
@echo "$(ORG)/$(INDEX_CORRECTION_IMAGE)"

.PHONY: docker/build/index-job-correction
## build index-job-correction image
docker/build/index-job-correction:
$(DOCKER) build \
$(DOCKER_OPTS) \
-f dockers/index/job/correction/Dockerfile \
-t $(ORG)/$(INDEX_JOB_CORRECTION_IMAGE):$(TAG) . \
-t $(ORG)/$(INDEX_CORRECTION_IMAGE):$(TAG) . \
--build-arg MAINTAINER=$(MAINTAINER) \
--build-arg GO_VERSION=$(GO_VERSION)
6 changes: 3 additions & 3 deletions dockers/index/job/correction/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ENV PATH ${PATH}:${GOROOT}/bin:${GOPATH}/bin
ENV ORG vdaas
ENV REPO vald
ENV PKG index/job/correction
ENV APP_NAME correction
ENV APP_NAME index-correction

# skipcq: DOK-DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -83,11 +83,11 @@ RUN cp sample.yaml /tmp/config.yaml
FROM ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME correction
ENV APP_NAME index-correction

COPY --from=builder /usr/bin/${APP_NAME} /go/bin/${APP_NAME}
COPY --from=builder /tmp/config.yaml /etc/server/config.yaml

USER nonroot:nonroot

ENTRYPOINT ["/go/bin/correction"]
ENTRYPOINT ["/go/bin/index-correction"]

0 comments on commit 502cabd

Please sign in to comment.