mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Update CONTRIBUTING.md: Update 'docker run' example (#2005)
Signed-off-by: Tom Noonan II <tom@tjnii.com>
This commit is contained in:
@@ -112,8 +112,12 @@ If you have Docker or a compatible alternative installed, you can run the entire
|
|||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-v "$PWD":/usr/src/opentofu\
|
-v "$PWD":/usr/src/opentofu\
|
||||||
-w /usr/src/opentofu golang:1.21.3\
|
-w /usr/src/opentofu\
|
||||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o tofu -v -buildvcs=false ./cmd/tofu
|
-e GOOS=linux\
|
||||||
|
-e GOARCH=amd64\
|
||||||
|
-e CGO_ENABLED=0\
|
||||||
|
golang:1.21.3\
|
||||||
|
go build -o tofu -v -buildvcs=false ./cmd/tofu
|
||||||
```
|
```
|
||||||
|
|
||||||
This will create the `tofu` binary in the current working directory, which you can test by running `./tofu --version`.
|
This will create the `tofu` binary in the current working directory, which you can test by running `./tofu --version`.
|
||||||
|
|||||||
Reference in New Issue
Block a user