Skip to content

Commit

Permalink
feat(docker/bazel): add USER env var
Browse files Browse the repository at this point in the history
  • Loading branch information
n0izn0iz authored and gfanton committed Dec 20, 2019
1 parent e4814c9 commit aaed80a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Expand Up @@ -111,7 +111,7 @@ steps:
- label: bazel-go
plugins:
- n0izn0iz/docker#v3.5.4:
image: bertytech/bazel:0.29.1-buster-r2
image: bertytech/bazel:0.29.1-buster-r3
propagate-uid-gid: true
workdir: /go/src/berty.tech
environment:
Expand Down
2 changes: 2 additions & 0 deletions tool/docker-bazel/Dockerfile
Expand Up @@ -31,3 +31,5 @@ RUN /tmp/bazel-0.29.1-installer-linux-x86_64.sh --user
RUN chmod o+x /root

ENV PATH="${PATH}:/root/bin"

ENV USER=root
6 changes: 3 additions & 3 deletions tool/docker-bazel/Makefile
@@ -1,10 +1,10 @@
IMAGE ?= bertytech/bazel
VERSION ?= 0.29.1-buster-r2
VERSION ?= 0.29.1-buster-r3

build:
docker build -t $(IMAGE):$(VERSION) .

publish: build
docker tag $(IMAGE):$(VERSION) $(IMAGE):latest
#docker tag $(IMAGE):$(VERSION) $(IMAGE):latest
docker push $(IMAGE):$(VERSION)
docker push $(IMAGE):latest
#docker push $(IMAGE):latest

0 comments on commit aaed80a

Please sign in to comment.