Compare commits

..

9 Commits
0.1.1 ... 0.2.0

Author SHA1 Message Date
0268685cfa Declare minor bump 2020-09-24 09:09:46 +02:00
dd4f31d9a1 Switch over to scripts.d 2020-09-24 09:03:25 +02:00
8a19bb059c Clarify repo 2020-09-22 15:00:23 +02:00
3a1f4e7bf6 Bump to next version 2020-09-22 14:18:41 +02:00
a065f5f2a6 Rough and ready upgrading 2020-09-22 14:17:12 +02:00
3d47cf97c0 Update notes about installer and tags 2020-09-22 14:02:59 +02:00
e052aa2b27 Add note about installer scripts repo 2020-09-22 13:58:17 +02:00
9660f32b84 Check also the installer script 2020-09-22 13:55:44 +02:00
32cef2af68 Add interactive flags for future 2020-09-22 13:55:26 +02:00
6 changed files with 34 additions and 3 deletions

View File

@ -7,7 +7,7 @@ steps:
commands: commands:
- apt update - apt update
- apt install -y shellcheck - apt install -y shellcheck
- shellcheck abra - shellcheck abra installer
trigger: trigger:
branch: branch:
- main - main

View File

@ -1,3 +1,11 @@
# abra 0.2.0 (2020-09-24)
- Prepare for swarm install script using script.d ([#12](https://git.autonomic.zone/compose-stacks/planning/issues/12))
# abra 0.1.2 (2020-09-22)
- Add upgrade command ([#10](https://git.autonomic.zone/autonomic-cooperative/abra/issues/10))
# abra 0.1.1 (2020-09-22) # abra 0.1.1 (2020-09-22)
- Add installer script ([#9](https://git.autonomic.zone/autonomic-cooperative/abra/issues/9)) - Add installer script ([#9](https://git.autonomic.zone/autonomic-cooperative/abra/issues/9))

View File

@ -7,7 +7,7 @@ Docker stack magic 🎩🐇
## Install ## Install
```sh ```sh
curl https://install.abra.autonomic.zone | bash curl -fsSL https://install.abra.autonomic.zone | bash
``` ```
Specific releases are available via the project [release page](https://git.autonomic.zone/autonomic-cooperative/abra/releases). Specific releases are available via the project [release page](https://git.autonomic.zone/autonomic-cooperative/abra/releases).
@ -24,6 +24,8 @@ cd abra
make dev_install make dev_install
``` ```
See [autonomic-cooperative/installer-scripts](https://git.autonomic.zone/autonomic-cooperative/installer-scripts) for the installer script deployment. To make a release, just add an entry to [CHANGELOG.md](./CHANGELOG.md) and the [abra-installer](./script.d/abra-installer) / [swarm-installer](./script.d/swarm-installer) (following [semver](https://semver.org/) please) and then `git tag x.x.x && git push origin main --tags`. If you want the [installer-scripts](https://git.autonomic.zone/autonomic-cooperative/installer-scripts) deployment to pick that up, you'll need to change the version number in the [Makefile](https://git.autonomic.zone/autonomic-cooperative/installer-scripts/src/branch/main/Makefile) and run `make` in that repository and push the changes.
## Examples ## Examples
- `abra run mariadb mysqldump gitea -p'GdIbMeS09SURRktBnm3jcTufsL5z0MPd' | gzip > ../git.autonomic.zone_mariadb_`date +%F`.sql.gz` - `abra run mariadb mysqldump gitea -p'GdIbMeS09SURRktBnm3jcTufsL5z0MPd' | gzip > ../git.autonomic.zone_mariadb_`date +%F`.sql.gz`

5
abra
View File

@ -62,6 +62,7 @@ sub_help() {
echo " run SERVICE CMD run a command in the specified service's container" echo " run SERVICE CMD run a command in the specified service's container"
echo " run_args SERVICE ARGS CMD run, passing extra args to docker exec" echo " run_args SERVICE ARGS CMD run, passing extra args to docker exec"
echo " secret_generate SECRET VERSION [CMD] generate a secret, store it in pass & as a Docker secret" echo " secret_generate SECRET VERSION [CMD] generate a secret, store it in pass & as a Docker secret"
echo " upgrade upgrade to the latest version"
echo " ... (custom commands)" echo " ... (custom commands)"
echo "" echo ""
echo "Make sure \$STACK_NAME is set using direnv or -a" echo "Make sure \$STACK_NAME is set using direnv or -a"
@ -237,6 +238,10 @@ sub_context_use() {
docker context use "$1" docker context use "$1"
} }
sub_upgrade() {
curl -fsSL https://install.abra.autonomic.zone | bash
}
sub_context() { sub_context() {
SUBCOMMAND2=$1 SUBCOMMAND2=$1
shift shift

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
ABRA_VERSION="0.1.0" ABRA_VERSION="0.1.2"
ABRA_SRC="https://git.autonomic.zone/autonomic-cooperative/abra/raw/tag/$ABRA_VERSION/abra" ABRA_SRC="https://git.autonomic.zone/autonomic-cooperative/abra/raw/tag/$ABRA_VERSION/abra"
function install_abra { function install_abra {

16
script.d/swarm-installer Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
install_docker() {
echo "install_docker: TODO"
}
init_swarm() {
echo "init_swarm: TODO"
}
run_installation() {
install_docker
init_swarm
}
run_installation
exit 0