Merge pull request #1820 from hashicorp/tmessi-fix-docker-build-dev

Replace XC_OSARCH with GOOS and GOARCH
This commit is contained in:
Timothy Messier authored and GitHub committed 2022-01-13 08:55:26 -05:00
commit cf0a95f260
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -249,7 +249,8 @@ docker-multiarch-build:
.PHONY: docker-build-dev
# builds from locally generated binary in bin/
docker-build-dev: export XC_OSARCH=linux/amd64
docker-build-dev: export GOOS=linux
docker-build-dev: export GOARCH=amd64
docker-build-dev: dev
cp -r bin docker/
docker build -t $(IMAGE_TAG_DEV) \
+2 -2
View File
@@ -27,8 +27,8 @@ binary to somewhere in your `$PATH` such as `/usr/local/bin`.
## Cross Platform Build
If you need to cross compile boundary for another OS or architecture, use the [XC_OSARCH](https://github.com/hashicorp/boundary/blob/master/scripts/build.sh#L26)
environment variable to set this. Example: `$ XC_OSARCH=linux/amd64 make dev`
If you need to cross compile boundary for another OS or architecture, use the [GOOS and GOARCH](https://github.com/hashicorp/boundary/blob/master/scripts/build.sh#L26)
environment variable to set this. Example: `$ GOOS=linux GOARCH=amd64 make dev`
For more details, please consult the [Boundary project on GitHub](https://github.com/hashicorp/boundary#build-and-start-boundary-in-dev-mode).