docs: updated go env steps fo install our pgks
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Roxie Gibson 2021-08-13 13:23:54 +01:00
parent 98ec23761f
commit 451c3d772d
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
5 changed files with 41 additions and 4 deletions

View File

@ -1,3 +1,6 @@
export PASSWORD_STORE_DIR=$(pwd)/../../autonomic/passwords/passwords/
export HCLOUD_TOKEN=$(pass show logins/hetzner/cicd/api_key)
go env -w GOPRIVATE=coopcloud.tech
# Roxie: Commented these out since I need non-Autonomic users to be able to use this too who most likely don't have our pass store setup :p
#export PASSWORD_STORE_DIR=$(pwd)/../../autonomic/passwords/passwords/
#export HCLOUD_TOKEN=$(pass show logins/hetzner/cicd/api_key)
# export CAPSUL_TOKEN=...

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
abra
.vscode/
vendor/
vendor/
.envrc

View File

@ -7,8 +7,39 @@
See [abra](https://git.coopcloud.tech/coop-cloud/abra) for more. See our progress in [TODO.md](TODO.md).
## Install
### Arch-based Linux Distros
[abra (coming-soon)](https://aur.archlinux.org/packages/abra/) or for the latest version on git [abra-git](https://aur.archlinux.org/packages/abra-git/)
```sh
yay -S abra-git # or abra
```
### Debian-based Linux Distros
__Coming Soon__
### Homebrew
__Coming Soon__
### Build from source
```sh
git clone https://git.coopcloud.tech/coop-cloud/go-abra
cd go-abra
go env -w GOPRIVATE=coopcloud.tech
make install
```
The abra binary will be in `$GOPATH/bin`.
## Hacking
Install direnv, run `cp .envrc.sample .envrc`, then run `direnv allow` in this directory. This will set coopcloud repos as private due to [this bug.](https://git.coopcloud.tech/coop-cloud/coopcloud.tech/issues/20#issuecomment-8201). Or you can run `go env -w GOPRIVATE=coopcloud.tech` but I'm not sure how persistent this is.
Install [Go >= 1.16](https://golang.org/doc/install) and then:
- `make build` to build

2
go.mod
View File

@ -3,7 +3,7 @@ module coopcloud.tech/abra
go 1.16
require (
coopcloud.tech/tagcmp v0.0.0-20210809131701-f81a7c03b97c
coopcloud.tech/tagcmp v0.0.0-20210813114741-44053d6bfba1
github.com/AlecAivazis/survey/v2 v2.2.15
github.com/Autonomic-Cooperative/godotenv v1.3.1-0.20210731170023-c37c0920d1a4
github.com/containerd/containerd v1.5.5 // indirect

2
go.sum
View File

@ -23,6 +23,8 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
coopcloud.tech/tagcmp v0.0.0-20210809131701-f81a7c03b97c h1:j4y6MBImeCU/nH7vFt9vIkFKJFcbtdSHk3OST79Mfj4=
coopcloud.tech/tagcmp v0.0.0-20210809131701-f81a7c03b97c/go.mod h1:ESVm0wQKcbcFi06jItF3rI7enf4Jt2PvbkWpDDHk1DQ=
coopcloud.tech/tagcmp v0.0.0-20210813114741-44053d6bfba1 h1:C9PonNP/Y+X3GXarmk4Mn+XeAokspS8Ov1x2GtRzVtI=
coopcloud.tech/tagcmp v0.0.0-20210813114741-44053d6bfba1/go.mod h1:ESVm0wQKcbcFi06jItF3rI7enf4Jt2PvbkWpDDHk1DQ=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/AlecAivazis/survey/v2 v2.2.15 h1:6UNMnk+YGegYFiPfdTOyZDIN+m08x2nGnqOn15BWcEQ=
github.com/AlecAivazis/survey/v2 v2.2.15/go.mod h1:TH2kPCDU3Kqq7pLbnCWwZXDBjnhZtmsCle5EiYDJ2fg=