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 \
|
-v \
|
||||||
-mod=vendor \
|
-mod=vendor \
|
||||||
-trimpath \
|
-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 \
|
-o /go/bin/neofs-s3 ./cmd/gate \
|
||||||
&& upx -3 /go/bin/neofs-s3
|
&& upx -3 /go/bin/neofs-s3
|
||||||
|
|
||||||
|
@ -33,8 +33,7 @@ FROM scratch
|
||||||
|
|
||||||
WORKDIR /
|
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/
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|
||||||
# Run delve
|
ENTRYPOINT ["/bin/neofs-s3"]
|
||||||
CMD ["/usr/bin/neofs-s3"]
|
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -15,7 +15,7 @@ help:
|
||||||
|
|
||||||
# Show current version
|
# Show current version
|
||||||
version:
|
version:
|
||||||
@echo $(VERSION)
|
@echo $(BUILD_VERSION)
|
||||||
|
|
||||||
# Reformat code
|
# Reformat code
|
||||||
format:
|
format:
|
||||||
|
@ -38,6 +38,6 @@ deps:
|
||||||
image-build:
|
image-build:
|
||||||
@echo "⇒ Build docker-image"
|
@echo "⇒ Build docker-image"
|
||||||
@docker build \
|
@docker build \
|
||||||
--build-arg VERSION=$(VERSION) \
|
--build-arg VERSION=$(BUILD_VERSION) \
|
||||||
-f Dockerfile \
|
-f Dockerfile \
|
||||||
-t nspccdev/neofs-s3-gate:$(VERSION) .
|
-t nspccdev/neofs-s3-gate:$(BUILD_VERSION) .
|
Loading…
Reference in a new issue