diff --git a/.envrc.sample b/.envrc.sample index aeae2432..149a0863 100644 --- a/.envrc.sample +++ b/.envrc.sample @@ -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=... diff --git a/.gitignore b/.gitignore index 4a9f8cd1..40088595 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ abra .vscode/ -vendor/ \ No newline at end of file +vendor/ +.envrc \ No newline at end of file diff --git a/README.md b/README.md index 8a2be243..83bd8561 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/go.mod b/go.mod index 38c7021c..4653f5b2 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 681cfcc1..77267680 100644 --- a/go.sum +++ b/go.sum @@ -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=