This is a set of containers that provide basic services for use in development. The idea here is that we have an "onion", "clickhole", "avclub" container each, and those link to these.
-
Install Docker for Mac
-
Run
scripts/serve
-
Setup shell aliases for commonly used docker commands
alias dc=docker-compose
-
If running in background (via "-d" flag), use
docker-compose logs
to view the running container's logs + console output -
List all running docker containers
docker ps
To interact with onion-services Vault:
-
Start vault shell:
$ docker run -e VAULT_ADDR=http://vault:8201 -it --link onionservices_vault_1:vault --entrypoint=/bin/sh sjourdan/vault
-
Authenticate via default root token (created via docker-compose container script)
$ vault auth 001fdd19-468b-ef28-c256-b46684c0a6fa Successfully authenticated! token: 001fdd19-468b-ef28-c256-b46684c0a6fa token_duration: 0 token_policies: [root]
-
Write secret
$ vault write secret/one hello=world Success! Data written to: secret/one
-
Read secret
$ vault read secret/one Key Value lease_duration 2592000 hello world