forked from toolshed/docs.coopcloud.tech
@ -30,8 +30,7 @@ Install [Go >= 1.16](https://golang.org/doc/install) and then:
|
|||||||
- `make build` to build. If this fails, run `go mod tidy`.
|
- `make build` to build. If this fails, run `go mod tidy`.
|
||||||
- `./abra` to run commands
|
- `./abra` to run commands
|
||||||
- `make test` will run tests
|
- `make test` will run tests
|
||||||
- `make install-abra` will install abra to `$GOPATH/bin`
|
- `make install` will install abra to `$GOPATH/bin`
|
||||||
- `make install-kadabra` will install kadabra to `$GOPATH/bin`
|
|
||||||
- `go get <package>`, `go mod tidy` and `go mod vendor` to add a new dependency
|
- `go get <package>`, `go mod tidy` and `go mod vendor` to add a new dependency
|
||||||
|
|
||||||
Our [Drone CI configuration](https://git.coopcloud.tech/toolshed/abra/src/branch/main/.drone.yml) runs a number of checks on each pushed commit. See the [Makefile](https://git.coopcloud.tech/toolshed/abra/src/branch/main/Makefile) for more handy targets.
|
Our [Drone CI configuration](https://git.coopcloud.tech/toolshed/abra/src/branch/main/.drone.yml) runs a number of checks on each pushed commit. See the [Makefile](https://git.coopcloud.tech/toolshed/abra/src/branch/main/Makefile) for more handy targets.
|
||||||
@ -321,7 +320,7 @@ func main() {
|
|||||||
|
|
||||||
Some tools that are making use of the API so far are:
|
Some tools that are making use of the API so far are:
|
||||||
|
|
||||||
* [`kadabra`](https://git.coopcloud.tech/toolshed/abra/src/branch/main/cmd/kadabra/main.go)
|
* [`kadabra`](https://git.coopcloud.tech/toolshed/kadabra)
|
||||||
|
|
||||||
## Cross-compiling
|
## Cross-compiling
|
||||||
|
|
||||||
|
|||||||
@ -271,35 +271,6 @@ To upgrade an app manually to the newest available version run:
|
|||||||
abra app upgrade <nextcloud-domain>
|
abra app upgrade <nextcloud-domain>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Automatic Upgrades
|
|
||||||
|
|
||||||
`kadabra` the auto-updater is still under development, use it with care and don't use it in production environments. To setup the auto-updater copy the `kadabra` binary to the server and configure a cronjob for regular app upgrades. The following script will configure ssmtp for email notifications and setup a cronjob. This cronjob checks daily for new app versions, notifies if any kind of update is available and upgrades all apps to the latest patch/minor version.
|
|
||||||
|
|
||||||
|
|
||||||
```bash
|
|
||||||
apt install ssmtp
|
|
||||||
|
|
||||||
cat > /etc/ssmtp/ssmtp.conf << EOF
|
|
||||||
mailhub=$MAIL_SERVER:587
|
|
||||||
hostname=$MAIL_DOMAIN
|
|
||||||
AuthUser=$USER
|
|
||||||
AuthPass=$PASSWORD
|
|
||||||
FromLineOverride=yes
|
|
||||||
UseSTARTTLS=yes
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > /etc/cron.d/abra_updater << EOF
|
|
||||||
MAILTO=admin@example.com
|
|
||||||
MAILFROM=noreply@example.com
|
|
||||||
|
|
||||||
0 6 * * * root ~/kadabra notify --major
|
|
||||||
30 4 * * * root ~/kadabra upgrade --all
|
|
||||||
EOF
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
Add `ENABLE_AUTO_UPDATE=true` to the env config (`abra app config <app name>`) to enable the auto-updater for a specific app.
|
|
||||||
|
|
||||||
## Finishing up
|
## Finishing up
|
||||||
|
|
||||||
Hopefully you got something running! Well done! The [operators handbook](/operators/handbook) would probably be the next place to go check out if you're looking for more help. Especially on topics of ongoing maintenance.
|
Hopefully you got something running! Well done! The [operators handbook](/operators/handbook) would probably be the next place to go check out if you're looking for more help. Especially on topics of ongoing maintenance.
|
||||||
|
|||||||
Reference in New Issue
Block a user