.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-04-29 07:29:28 +01:00
parent a55147346b
commit 4628f26c7f
4 changed files with 29 additions and 5 deletions

View File

@ -5,7 +5,7 @@ def main(ctx):
return drone( return drone(
ctx, ctx,
"home-deploy", "home-deploy",
"/stack-deploy", "/stack/deploy",
"gitea", "gitea",
[ [
"docker service scale gitea_ngrok=1", "docker service scale gitea_ngrok=1",

View File

@ -35,4 +35,28 @@ In a [docker](https://www.docker.com/) stack.
Once installed and running the system can redeploy itself. Once installed and running the system can redeploy itself.
However initially you need to do this yourself. 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
```

View File

@ -231,7 +231,7 @@ services:
guacamole-postgresql: guacamole-postgresql:
deploy: deploy:
placement: placement:
constraints: [node.labels.com.sigyl.git-stack == yes] constraints: [node.labels.com.sigyl.git-stack-data == yes]
replicas: 1 replicas: 1
restart_policy: restart_policy:
condition: any condition: any
@ -293,7 +293,7 @@ services:
chat-mongo: chat-mongo:
deploy: deploy:
placement: placement:
constraints: [node.labels.com.sigyl.git-stack == yes] constraints: [node.labels.com.sigyl.git-stack-data == yes]
replicas: 1 replicas: 1
restart_policy: restart_policy:
condition: any condition: any

View File

@ -106,7 +106,7 @@ docker node update --label-add com.sigyl.git-stack=yes [node id]
### generate certificates ### 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 where [registry-domain] is the domain on which the registry will be served
sh ca.sh [registry-domain]:5000 sh ca.sh [registry-domain]:5000