Skip to content

Commit

Permalink
upgrade to tf 0.12/go 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
plukevdh committed Jun 21, 2019
1 parent 07c7b09 commit fa074e3
Show file tree
Hide file tree
Showing 5 changed files with 478 additions and 2 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.12

WORKDIR /go/src/terraform-provider-dmsnitch
COPY . .

ENV GOOS=linux
ENV GOARCH=amd64
ENV GO111MODULE=on

RUN go get -d -v ./...
RUN go install -v ./...

VOLUME /go/src/terraform-provider-dmsnitch
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build-linux:
docker build -t dms-builder .
docker run --rm -v "${PWD}":/go/src/terraform-provider-dmsnitch dms-builder go build

build:
go get -d -v ./...
go install -v ./...
go build

install:
cp terraform-provider-dmsnitch ~/.terraform.d/plugins/
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# Terraform [Dead Man's Snitch](https://deadmanssnitch.com/) Provider

## Note on Compatability

This branch is meant to work against the latest version of Terraform. For previous versions, see below

- 0.0.x: Terraform 0.11 and earlier
- 0.1.x: Terraform 0.12

## Requirements

- Terraform 0.10.x or higher
- Go 1.8 or higher
- Terraform 0.12.x or higher
- Go 1.11 or higher
- Go module support

Please note [the following details](https://www.terraform.io/docs/extend/terraform-0.12-compatibility.html) if you have built this plugin prior to Terraform 0.12.

## Building The Provider

Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/plukevdh/terraform-provider-dmsnitch

go 1.12

require github.com/hashicorp/terraform v0.12.0
Loading

0 comments on commit fa074e3

Please sign in to comment.