diff --git a/.drone-home.star b/.drone-home.star index 753d0d8..d36514a 100644 --- a/.drone-home.star +++ b/.drone-home.star @@ -5,7 +5,7 @@ def main(ctx): return drone( ctx, "home-deploy", - "/stack-deploy", + "/stack/deploy", "gitea", [ "docker service scale gitea_ngrok=1", diff --git a/README.md b/README.md index ed39449..7486b2a 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,28 @@ In a [docker](https://www.docker.com/) stack. Once installed and running the system can redeploy itself. -However initially you need to do this yourself. \ No newline at end of file +However initially you need to do this yourself. + +you need a docker swarm set up with nodes with the following labels + +* com.sigyl.git-stack=yes +* com.sigyl.git-stack-data=yes + +### make a folder and give yourself access + +``` +sudo mkdir /stack +sudo chown -R $USER:$USER +cd /stack +``` + +### clone the repository + +``` +cd /stack +git clone https://sigyl.com/git/giles/stack.git deploy +cd deploy +git checkout home-deploy + +``` + diff --git a/docker-compose-home.yml b/docker-compose-home.yml index f376a5a..467f643 100644 --- a/docker-compose-home.yml +++ b/docker-compose-home.yml @@ -231,7 +231,7 @@ services: guacamole-postgresql: deploy: placement: - constraints: [node.labels.com.sigyl.git-stack == yes] + constraints: [node.labels.com.sigyl.git-stack-data == yes] replicas: 1 restart_policy: condition: any @@ -293,7 +293,7 @@ services: chat-mongo: deploy: placement: - constraints: [node.labels.com.sigyl.git-stack == yes] + constraints: [node.labels.com.sigyl.git-stack-data == yes] replicas: 1 restart_policy: condition: any diff --git a/install.md b/install.md index fcab398..e9a0edb 100644 --- a/install.md +++ b/install.md @@ -106,7 +106,7 @@ docker node update --label-add com.sigyl.git-stack=yes [node id] ### generate certificates -(rnd filke) dd if=/dev/urandom of=~/.rnd bs=256 count=1 +(rnd file) dd if=/dev/urandom of=~/.rnd bs=256 count=1 where [registry-domain] is the domain on which the registry will be served sh ca.sh [registry-domain]:5000