Skip to content

Instantly share code, notes, and snippets.

@janhalfar
Created December 14, 2015 17:35
Show Gist options
  • Save janhalfar/cc1dcb8135f2afec48d7 to your computer and use it in GitHub Desktop.
Save janhalfar/cc1dcb8135f2afec48d7 to your computer and use it in GitHub Desktop.
A foomo, docker and vault howto

foomo, docker and vault howto

Checking out the project

# check it out locally
git clone project project-dir
# cd into project dir
cd project-dir
# checkout the branch you want to work on
git checkout develop
# do not forget your submodules
git submodule init
git submodule update

Use config-bob to render configs

In any case checkout config-bob´s README.md

Use config bob to run a local vault

This step is optional. You only need a local vault, if you have secrets and no remote vault server.

# start config bob with a local vault server
config-bob vault-local config/vault
# config-bob will start a shell for you with VAULT_ADDR set
# unseal the local vault and set VAULT_TOKEN
vault unseal
export VAULT_TOKEN=token_1234_xxx

Render configs

config-bob build config/test-local/data.yml config/test-base config/test

Use foomo-bert to kickstart the app

Call foomo-bert prepare before you start the app!

foomo-bert prepare -run-mode test -dir path/to/project-dir

Run your app with docker-compose

docker-compose -p project-name --x-networking  -f config/test/docker/docker-compose.yml up

Reset things one more time to ensure everything is fine

foomo-bert reset -run-mode test -addr https://project -main-module Main.Module -dir path/to/project-dir

DONE. Have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment