Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion atlas/templates/Makefile.common.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SERVER_DOCKERFILE ?= $(DOCKERFILE_PATH)/Dockerfile
# configuration for the protobuf gentool
SRCROOT_ON_HOST ?= $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
SRCROOT_IN_CONTAINER ?= /go/src/$(PROJECT_ROOT)
DOCKER_RUNNER ?= docker run --rm -u `id -u`:`id -g` -e CGO_ENABLED=0 -w $(SRCROOT_IN_CONTAINER)-v $(SRCROOT_ON_HOST):$(SRCROOT_IN_CONTAINER)
DOCKER_RUNNER ?= docker run --rm -e CGO_ENABLED=0 -w $(SRCROOT_IN_CONTAINER) -v $(SRCROOT_ON_HOST):$(SRCROOT_IN_CONTAINER)
DOCKER_GENERATOR ?= infoblox/atlas-gentool:latest
GENERATOR ?= $(DOCKER_RUNNER) $(DOCKER_GENERATOR)

Expand Down
6 changes: 3 additions & 3 deletions atlas/templates/Makefile.vars.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ SERVER_DOCKERFILE := $(DOCKERFILE_PATH)/Dockerfile
# configuration for the protobuf gentool
SRCROOT_ON_HOST := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
SRCROOT_IN_CONTAINER := /go/src/$(PROJECT_ROOT)
DOCKER_RUNNER ?= docker run --rm -u `id -u`:`id -g` -e GOCACHE=/go -e CGO_ENABLED=0
DOCKER_RUNNER += -v $(SRCROOT_ON_HOST):$(SRCROOT_IN_CONTAINER)
DOCKER_RUNNER_VARS ?= docker run --rm -u `id -u`:`id -g` -e GOCACHE=/go -e CGO_ENABLED=0
DOCKER_RUNNER_VARS += -v $(SRCROOT_ON_HOST):$(SRCROOT_IN_CONTAINER)
DOCKER_GENERATOR := infoblox/atlas-gentool:latest
GENERATOR := $(DOCKER_RUNNER) $(DOCKER_GENERATOR)
GENERATOR := $(DOCKER_RUNNER_VARS) $(DOCKER_GENERATOR)
{{ if .WithDatabase }}
# configuration for the database
WITH_DATABASE = true
Expand Down