The Co-op Cloud command-line utility belt 🎩🐇 https://coopcloud.tech
Go to file
cellarspoon 870c561fee
Revert "Revert "fix: include ignored files""
This reverts commit 9be78bc5fa.

Attempting to fix this once again.
2021-12-11 19:53:35 +01:00
.gitea docs: add template 2021-09-11 12:20:27 +02:00
cli Revert "fix: match exact on filtering" [ci skip] 2021-12-09 14:12:16 +01:00
cmd/abra docs: document main package 2021-09-05 00:19:20 +02:00
pkg Revert "Revert "fix: include ignored files"" 2021-12-11 19:53:35 +01:00
scripts fix(installer): drop double echo 2021-11-30 12:07:40 +01:00
tests/resources test: ensure .env reading tests work 2021-10-02 22:10:00 +02:00
.drone.yml fix: use more descriptive name for token [ci skip] 2021-09-07 09:04:06 +02:00
.envrc.sample dosc: add gitea token [ci skip] 2021-09-07 09:01:26 +02:00
.gitignore test: increatse client/context.go coverage to 90% 2021-10-16 11:41:41 +02:00
.goreleaser.yml chore: avoid reverts in the change logi [ci skip] 2021-11-03 10:13:45 +01:00
go.mod fix: support retryable http clients 2021-11-22 18:28:18 +01:00
go.sum fix: support retryable http clients 2021-11-22 18:28:18 +01:00
Makefile test: go verbose on testing [ci skip] 2021-11-09 11:36:24 +01:00
README.md docs: reinstate install docs on README [ci skip] 2021-11-12 08:57:30 +01:00
renovate.json chore(deps): add renovate.json 2021-11-13 20:26:28 +00:00

abra

https://coopcloud.tech

Build Status Go Report Card

The Co-op Cloud utility belt 🎩🐇

abra is a command-line tool for managing your own Co-op Cloud. It can provision new servers, create apps, deploy them, run backup and restore operations and a whole lot of other things. Please see docs.coopcloud.tech for more extensive documentation.

Quick install

curl https://install.abra.autonomic.zone | bash

Or using the latest release candidate (extra experimental!):

curl https://install.abra.autonomic.zone | bash -s -- --rc

Source for this script is in scripts/installer/installer.

Hacking

Getting started

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.. Or you can run go env -w GOPRIVATE=coopcloud.tech but I'm not sure how persistent this is.

Install Go >= 1.16 and then:

  • make build to build
  • ./abra to run commands
  • make test will run tests
  • make install will install it to $GOPATH/bin
  • go get <package> and go mod tidy to add a new dependency

Our Drone CI configuration runs a number of sanity on each pushed commit. See the Makefile for more handy targets.

Please use the conventional commit format for your commits so we can automate our change log.

Versioning

We use goreleaser to help us automate releases. We use semver for versioning all releases of the tool. While we are still in the public alpha release phase, we will maintain a 0.y.z-alpha format. Change logs are generated from our commit logs. We are still working this out and aim to refine our release praxis as we go.

For developers, while using this -alpha format, the y part is the "major" version part. So, if you make breaking changes, you increment that and not the x part. So, if you're on 0.1.0-alpha, then you'd go to 0.1.1-alpha for a backwards compatible change and 0.2.0-alpha for a backwards incompatible change.

Making a new release

  • Change ABRA_VERSION to match the new tag in scripts (use semver)
  • Commit that change (e.g. git commit -m 'chore: publish next tag x.y.z-alpha')
  • Make a new tag (e.g. git tag -a x.y.z-alpha)
  • Push the new tag (e.g. git push && git push --tags)
  • Wait until the build finishes on build.coopcloud.tech
  • Deploy the new installer script (e.g. cd ./scripts/installer && make)
  • Check the release worked, (e.g. abra upgrade; abra -v)

Fork maintenance

godotenv

We maintain a fork of godotenv for two features:

  1. multi-line env var support
  2. inline comment parsing

You can upgrade the version here by running go get github.com/Autonomic-Cooperative/godotenv@<commit> where <commit> is the latest commit you want to pin to. We are aiming to migrate to YAML format for the environment configuration, so this should only be a temporary thing.

docker/client

A number of modules in pkg/upstream are copy/pasta'd from the upstream docker/docker/client. We had to do this because upstream are not exposing their API as public.