forked from TrueCloudLab/frostfs-s3-gw
Change ENV prefix
TODO should be replaced with S3_GW before release Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
parent
f5fb850c3f
commit
580da7373b
2 changed files with 6 additions and 7 deletions
|
@ -24,7 +24,7 @@ RUN set -x \
|
|||
-v \
|
||||
-mod=vendor \
|
||||
-trimpath \
|
||||
-ldflags "${LDFLAGS} -X main.Build=$(date -u +%s%N) -X main.Prefix=S3_GW" \
|
||||
-ldflags "${LDFLAGS} -X ${REPO}/misc.Prefix=S3_GW" \
|
||||
-o /go/bin/neofs-s3 ./cmd/gate \
|
||||
&& upx -3 /go/bin/neofs-s3
|
||||
|
||||
|
@ -33,8 +33,7 @@ FROM scratch
|
|||
|
||||
WORKDIR /
|
||||
|
||||
COPY --from=builder /go/bin/neofs-s3 /usr/bin/neofs-s3
|
||||
COPY --from=builder /go/bin/neofs-s3 /bin/neofs-s3
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
# Run delve
|
||||
CMD ["/usr/bin/neofs-s3"]
|
||||
ENTRYPOINT ["/bin/neofs-s3"]
|
||||
|
|
6
Makefile
6
Makefile
|
@ -15,7 +15,7 @@ help:
|
|||
|
||||
# Show current version
|
||||
version:
|
||||
@echo $(VERSION)
|
||||
@echo $(BUILD_VERSION)
|
||||
|
||||
# Reformat code
|
||||
format:
|
||||
|
@ -38,6 +38,6 @@ deps:
|
|||
image-build:
|
||||
@echo "⇒ Build docker-image"
|
||||
@docker build \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--build-arg VERSION=$(BUILD_VERSION) \
|
||||
-f Dockerfile \
|
||||
-t nspccdev/neofs-s3-gate:$(VERSION) .
|
||||
-t nspccdev/neofs-s3-gate:$(BUILD_VERSION) .
|
Loading…
Reference in a new issue