File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM golang:1.19-bullseye
2
+
3
+ WORKDIR $GOPATH/src/github.com/fly-apps/terraform-provider-fly
4
+ COPY go.mod .
5
+ RUN go mod download -x
6
+ RUN mkdir -p /out/
7
+
8
+ COPY . .
9
+ RUN go env; go install; cp $GOPATH/bin/terraform-provider-fly /out/
10
+
11
+ WORKDIR $GOPATH
Original file line number Diff line number Diff line change @@ -36,3 +36,11 @@ To run acceptance tests for this provider some scaffolding is required.
36
36
4 . Got to the infra directory and run ` terraform apply ` to create the scaffolding.
37
37
5 . You should now be able to run ` make ` in the repo root to run tests.
38
38
6 . (Optional) set FLY_TF_TEST_REGION in ` .make-overrides ` to a region closer to you
39
+
40
+ ### Building with Docker
41
+ If you don't have a local Go environment, you can build in a container:
42
+
43
+ ```
44
+ docker build --pull -t provider-fly:latest .
45
+ docker run --rm --entrypoint=cat provider-fly:latest /out/terraform-provider-fly > terraform-provider-fly
46
+ ```
You can’t perform that action at this time.
0 commit comments