Skip to content

Commit

Permalink
chore: rename migrator module to signoz schema migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawal1248 committed Oct 12, 2023
1 parent bda2884 commit 7c7b88c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test:
.PHONY: build
build:
CGO_ENABLED=1 go build -tags timetzdata -o .build/${GOOS}-${GOARCH}/signoz-collector -ldflags "-linkmode external -extldflags '-static' -s -w ${LD_FLAGS}" ./cmd/signozcollector
CGO_ENABLED=1 go build -tags timetzdata -o .build/${GOOS}-${GOARCH}/signoz-collector-migrator -ldflags "-linkmode external -extldflags '-static' -s -w ${LD_FLAGS}" ./cmd/signozcollectormigrator
CGO_ENABLED=1 go build -tags timetzdata -o .build/${GOOS}-${GOARCH}/signoz-schema-migrator -ldflags "-linkmode external -extldflags '-static' -s -w ${LD_FLAGS}" ./cmd/signozschemamigrator

.PHONY: amd64
amd64:
Expand Down Expand Up @@ -75,22 +75,22 @@ build-signoz-collector:
--no-cache -f cmd/signozcollector/Dockerfile --progress plain \
--tag $(REPONAME)/$(IMAGE_NAME):$(DOCKER_TAG) .

.PHONY: build-signoz-collector-migrator
build-signoz-collector-migrator:
.PHONY: build-signoz-schema-migrator
build-signoz-schema-migrator:
@echo "------------------"
@echo "--> Build signoz collector migrator docker image"
@echo "------------------"
docker build --build-arg TARGETPLATFORM="linux/amd64" \
--no-cache -f cmd/signozcollectormigrator/Dockerfile --progress plain \
--no-cache -f cmd/signozschemamigrator/Dockerfile --progress plain \
--tag $(REPONAME)/$(MIGRATOR_IMAGE_NAME):$(DOCKER_TAG) .

.PHONY: build-and-push-signoz-collector-migrator
build-and-push-signoz-collector-migrator:
.PHONY: build-and-push-signoz-schema-migrator
build-and-push-signoz-schema-migrator:
@echo "------------------"
@echo "--> Build and push signoz collector migrator docker image"
@echo "------------------"
docker buildx build --platform linux/amd64,linux/arm64 --progress plain \
--no-cache --push -f cmd/signozcollectormigrator/Dockerfile \
--no-cache --push -f cmd/signozschemamigrator/Dockerfile \
--tag $(REPONAME)/$(MIGRATOR_IMAGE_NAME):$(DOCKER_TAG) .

.PHONY: lint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ARG USER_UID=10001
USER ${USER_UID}

# copy the binaries from the multi-stage build
COPY .build/${TARGETOS}-${TARGETARCH}/signoz-collector-migrator /signoz-collector-migrator
COPY .build/${TARGETOS}-${TARGETARCH}/signoz-schema-migrator /signoz-schema-migrator
COPY migrationManager ./migrationManager

# run the binary as the entrypoint and pass the default dsn as a flag
ENTRYPOINT [ "/signoz-collector-migrator" ]
ENTRYPOINT [ "/signoz-schema-migrator" ]
CMD ["--dsn", "tcp://host.docker.internal:9000"]
File renamed without changes.

0 comments on commit 7c7b88c

Please sign in to comment.