From dd4f31d9a1c4bb1f1a839955b9bc72a06fba1f8c Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 24 Sep 2020 09:03:25 +0200 Subject: [PATCH] Switch over to scripts.d --- CHANGELOG.md | 4 ++++ README.md | 2 +- installer => script.d/abra-installer | 0 script.d/swarm-installer | 16 ++++++++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) rename installer => script.d/abra-installer (100%) create mode 100755 script.d/swarm-installer diff --git a/CHANGELOG.md b/CHANGELOG.md index aaa9e215..662a6d82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# abra x.x.x (UNRELEASED) + +- Add docker install script (using new script.d directory) + # abra 0.1.2 (2020-09-22) - Add upgrade command ([#10](https://git.autonomic.zone/autonomic-cooperative/abra/issues/10)) diff --git a/README.md b/README.md index 3550a4d8..57f02827 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ cd abra 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 [installer](./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. +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 diff --git a/installer b/script.d/abra-installer similarity index 100% rename from installer rename to script.d/abra-installer diff --git a/script.d/swarm-installer b/script.d/swarm-installer new file mode 100755 index 00000000..4d6a3dad --- /dev/null +++ b/script.d/swarm-installer @@ -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