Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Upgrade chamber, fix build for unvendoring (#53)
Browse files Browse the repository at this point in the history
Upgrades chamber to a version compatible with IRSA. Also removes build flags that forced there to be a vendor directory. Additionally recent version of Go no longer require an explicit flag to be set to force using Go modules, so removing the flag.
  • Loading branch information
mbarrien authored Jun 12, 2020
1 parent 09699c2 commit 7ca18b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# First stage: build the executable
FROM golang:1 AS builder

# Enable Go modules and vendor
ENV GO111MODULE=on GOFLAGS=-mod=vendor

# Set the Current Working Directory inside the container
WORKDIR /app

Expand All @@ -16,7 +13,7 @@ COPY pkg pkg
RUN CGO_ENABLED=0 GOOS=linux go build -o rotator .

# Install chamber
ENV CHAMBER_VERSION=v2.1.0
ENV CHAMBER_VERSION=v2.8.2
RUN wget -q https://github.com//segmentio/chamber/releases/download/${CHAMBER_VERSION}/chamber-${CHAMBER_VERSION}-linux-amd64 -O /bin/chamber
RUN chmod +x /bin/chamber

Expand Down

0 comments on commit 7ca18b0

Please sign in to comment.