From f0a15b079ffa910b25375d37c90065e0ec432f92 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 4 Aug 2023 14:53:46 +0200 Subject: [PATCH] Add disco build-abra-in-docker advice Thanks @V --- docs/abra/hack.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/abra/hack.md b/docs/abra/hack.md index 24f9614..2d6a18a 100644 --- a/docs/abra/hack.md +++ b/docs/abra/hack.md @@ -70,6 +70,18 @@ If there's no official release for the architecture you use, you can cross-compi - run `git checkout `, where `` is the latest version - run `GOOS= GOARCH= [GOARM=] make build`. You only have to use `GOARM` if you're building for ARM, this specifies the ARM version (5,6,7 etc). See [this](https://go.dev/doc/install/source#environment) for a list of all supported OS'es and architectures. +### Building in Docker + +If you are living under a curse of constant Go environment problems, it might be easier to build `abra` using Docker: + +``` +sudo setenforce 0 # SELinux probably won't allow Docker to access files +docker run -it -v $PWD:/abra golang:1.19.6 bash +cd /abra +. .envrc +git config --global --add safe.directory /abra # work around funky file permissions +make build +``` ## Release management