||1 year ago|
|.gitea||2 years ago|
|cli||1 year ago|
|cmd/abra||1 year ago|
|pkg||1 year ago|
|scripts||1 year ago|
|tests/resources||2 years ago|
|.drone.yml||2 years ago|
|.envrc.sample||2 years ago|
|.gitignore||1 year ago|
|.goreleaser.yml||1 year ago|
|Makefile||1 year ago|
|README.md||1 year ago|
|go.mod||1 year ago|
|go.sum||1 year ago|
|renovate.json||1 year ago|
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.
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.
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 buildto build
./abrato run commands
make testwill run tests
make installwill install it to
go get <package>and
go mod tidyto 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.
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
ABRA_VERSIONto match the new tag in
- 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)
We maintain a fork of godotenv for two features:
- multi-line env var support
- 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.
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.