mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update CONTRIBUTING.md: Update 'docker run' example (#2005)
Signed-off-by: Tom Noonan II <tom@tjnii.com>
This commit is contained in:
parent
48abc52e46
commit
bc166ce498
@ -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`.
|
||||||
|
Loading…
Reference in New Issue
Block a user