Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #12 from sagansystems/ch29809/build-and-publish-te…
Browse files Browse the repository at this point in the history
…rraform-provider-snowflake

Build and publish terraform provider snowflake
  • Loading branch information
Lukasz Lempart authored Mar 2, 2019
2 parents e30b2ff + a5c6a6d commit e8adef2
Show file tree
Hide file tree
Showing 1,808 changed files with 250 additions and 537,818 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM alpine:3.9 as base

FROM golang:1.12 as builder

ENV go_workspace=/go
ENV GOPATH $go_workspace
ENV PROJECT_DIR=$GOPATH/src/github.com/sagansystems/terraform-provider-snowflake
WORKDIR ${PROJECT_DIR}

COPY snowflake snowflake
COPY main.go .
COPY go.mod .
COPY go.sum .

RUN gofmt -l `find . -name '*.go'`
RUN echo $(go list ./...) | GO111MODULE=on xargs -t -n4 go test -timeout=30s -parallel=4
RUN GO111MODULE=on go build

# back to the base-ics, we only need the binary
FROM base

COPY --from=builder /go/src/github.com/sagansystems/terraform-provider-snowflake/terraform-provider-snowflake /usr/local/bin/
Loading

0 comments on commit e8adef2

Please sign in to comment.