Make dockerfiles consistent between archs

This commit is contained in:
Travis Groth 2019-07-07 16:23:25 -04:00
parent 5981f0510c
commit d0848fd250
3 changed files with 7 additions and 5 deletions

View file

@ -15,6 +15,7 @@
- Proxy's sign out handler `{}/.pomerium/sign_out` now accepts an optional `redirect_uri` parameter which can be used to specify a custom redirect page, so long as it is under the same top-level domain. [GH-183] - Proxy's sign out handler `{}/.pomerium/sign_out` now accepts an optional `redirect_uri` parameter which can be used to specify a custom redirect page, so long as it is under the same top-level domain. [GH-183]
- Policy configuration can now be empty at startup. [GH-190] - Policy configuration can now be empty at startup. [GH-190]
- Websocket support is now set per-route instead of globally. [GH-204] - Websocket support is now set per-route instead of globally. [GH-204]
- golint removed from amd64 container
### FIXED ### FIXED

View file

@ -1,19 +1,19 @@
FROM golang:latest as build FROM golang:latest as build
WORKDIR /go/src/github.com/pomerium/pomerium WORKDIR /go/src/github.com/pomerium/pomerium
ENV CGO_ENABLED=0
ENV GO111MODULE=on
# docker build --build-arg ARCH=arm --build-arg ARM=7 . # docker build --build-arg ARCH=arm --build-arg ARM=7 .
# frustratingly not supported by dockerhub automated builds though # frustratingly not supported by dockerhub automated builds though
ARG ARCH=amd64 ARG ARCH=amd64
ARG ARM=7 ARG ARM=7  
ENV CGO_ENABLED=0
ENV GO111MODULE=on
ENV GOARCH=${ARCH} ENV GOARCH=${ARCH}
ENV GOARM=${ARM} ENV GOARM=${ARM}
RUN go get golang.org/x/lint/golint
# cache depedency downloads # cache depedency downloads
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
# build # build
RUN make RUN make
RUN touch /config.yaml RUN touch /config.yaml

View file

@ -50,6 +50,7 @@ fmt: ## Verifies all files have been `gofmt`ed.
.PHONY: lint .PHONY: lint
lint: ## Verifies `golint` passes. lint: ## Verifies `golint` passes.
@echo "==> $@" @echo "==> $@"
@go get golang.org/x/lint/golint
@golint ./... | grep -v '.pb.go:' | grep -v vendor | tee /dev/stderr @golint ./... | grep -v '.pb.go:' | grep -v vendor | tee /dev/stderr
.PHONY: staticcheck .PHONY: staticcheck