Skip to content

Commit

Permalink
Fix docker build of golang images
Browse files Browse the repository at this point in the history
Go 1.14 which we use to build our code in golang:alpine docker images
aparenlty has some issues, which are fixed by setting these flags
as described here: docker-library/golang#320

Signed-off-by: Nikolay Nikolaev <nnikolay@vmware.com>
  • Loading branch information
Nikolay Nikolaev committed Mar 8, 2020
1 parent 0bdefb0 commit 576e68c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mk/docker-targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ else
HTTPSBUILD=--build-arg HTTPS_PROXY=$(HTTPS_PROXY)
endif

DOCKERBUILD=docker build --network="host" --build-arg VPP_AGENT=$(VPP_AGENT) ${HTTPBUILD} ${HTTPSBUILD}
# Go 1.14 which we use to build our code in golang:alpine docker images
# aparenlty has some issues, which are fixed by setting these flags
# as described here:
# https://github.com/docker-library/golang/issues/320
#
DOCKERGOFIX=--ulimit memlock=-1

DOCKERBUILD=docker build --network="host" --build-arg VPP_AGENT=$(VPP_AGENT) ${HTTPBUILD} ${HTTPSBUILD} ${DOCKERGOFIX}

define generate-docker-targets
.PHONY: docker-$1-$2-build
Expand Down

0 comments on commit 576e68c

Please sign in to comment.