Skip to content

Commit

Permalink
Merge pull request #60 from maxsmythe/gomod
Browse files Browse the repository at this point in the history
Move to gomodules in preparation for kubebuilder v2 migration
  • Loading branch information
maxsmythe authored Nov 12, 2019
2 parents 15991b8 + 0dcd1ef commit 1307ba7
Show file tree
Hide file tree
Showing 1,680 changed files with 108,538 additions and 264,579 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ bin
*.swp
*.swo
*~
.output/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ services:
- docker
language: go
go:
- '1.10'
- '1.13'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
all: build-constraint

build-constraint:
@make -C constraint
./build/build_constraint.sh
4 changes: 4 additions & 0 deletions build/build_constraint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd constraint
make
6 changes: 4 additions & 2 deletions constraint/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Build the manager binary
FROM golang:1.10.3 as builder
FROM golang:1.13.3 as builder

RUN apt-get update &&\
apt-get install -y apt-utils make

# Install kubebuilder
WORKDIR /scratch
ENV version=1.0.8
ENV version=2.0.1
ENV arch=amd64
RUN curl -L -O "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_linux_${arch}.tar.gz" &&\
tar -zxvf kubebuilder_${version}_linux_${arch}.tar.gz &&\
Expand All @@ -30,4 +30,6 @@ RUN curl -L -o opa https://github.com/open-policy-agent/opa/releases/download/v0
WORKDIR /go/src/github.com/open-policy-agent/frameworks/constraint
COPY . .

ENV GO111MODULE=off

ENTRYPOINT ["make", "docker-internal-test"]
Loading

0 comments on commit 1307ba7

Please sign in to comment.