Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 40b4da3

Browse files
committed
Add make restart and make stop commands for managing the docker container
Per issue #62. Also adds docs on using these commands.
1 parent dc661a2 commit 40b4da3

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

docker/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ serve: env-file-exists ca-key-exists build
3030
docker run -d --restart unless-stopped -v $(CURDIR)/example-keybaseca-volume:/mnt:rw ca:latest docker/entrypoint-server.sh
3131
@echo "Started CA bot service in the background... Use `docker ps` and `docker logs` to monitor it"
3232

33+
# Stop the service
34+
stop:
35+
docker kill `docker ps -q --filter ancestor=ca`
36+
37+
# Restart the service (useful if you updated env.sh)
38+
restart: stop serve
39+
3340
# Wipe all data
3441
clean: confirm-clean reset-permissions
3542
@# Sudo since it is likely owned by another use since it was written from a docker container

docs/getting_started.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,10 @@ kssh root@server # If in {TEAM}.ssh.root_everywhere
6565
```
6666

6767
We recommend building kssh yourself and distributing the binary among your team (perhaps in Keybase Files!).
68+
69+
## Updating environment variables
70+
71+
If you update any environment variables, it is necessary to restart the keybaseca service. This can be done
72+
by running `make restart`. Note that it is not required to re-run `make generate`.
73+
74+
Note that this means `kssh` will not work for a brief period of time while the container restarts.

0 commit comments

Comments
 (0)