mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
deployment/docker: omit http2 support in *-prod
binaries
VictoriaMetrics doesn't use http/2.0, so disable it completely.
Use `nethttpomithttp2` tag defined in Go1.14 for this.
See 2566e21f24
for details.
This commit is contained in:
parent
4e237b4670
commit
ddd8c9d099
@ -32,7 +32,9 @@ app-via-docker: package-base package-builder
|
|||||||
--env GO111MODULE=on \
|
--env GO111MODULE=on \
|
||||||
$(DOCKER_OPTS) \
|
$(DOCKER_OPTS) \
|
||||||
$(BUILDER_IMAGE) \
|
$(BUILDER_IMAGE) \
|
||||||
go build $(RACE) -mod=vendor -trimpath -ldflags "-s -w -extldflags '-static' $(GO_BUILDINFO)" -tags 'netgo osusergo' \
|
go build $(RACE) -mod=vendor -trimpath \
|
||||||
|
-ldflags "-s -w -extldflags '-static' $(GO_BUILDINFO)" \
|
||||||
|
-tags 'netgo osusergo nethttpomithttp2' \
|
||||||
-o bin/$(APP_NAME)$(APP_SUFFIX)-prod $(PKG_PREFIX)/app/$(APP_NAME)
|
-o bin/$(APP_NAME)$(APP_SUFFIX)-prod $(PKG_PREFIX)/app/$(APP_NAME)
|
||||||
|
|
||||||
package-via-docker:
|
package-via-docker:
|
||||||
|
Loading…
Reference in New Issue
Block a user