git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
| // Promise.all is good for executing many promises at once | |
| Promise.all([ | |
| promise1, | |
| promise2 | |
| ]); | |
| // Promise.resolve is good for wrapping synchronous code | |
| Promise.resolve().then(function () { | |
| if (somethingIsNotRight()) { | |
| throw new Error("I will be rejected asynchronously!"); |
| { | |
| "id": "nsqadmin-http", | |
| "kind": "Service", | |
| "apiVersion": "v1beta1", | |
| "containerPort": 4171, | |
| "port": 14171, | |
| "protocol": "TCP", | |
| "selector": { "name": "nsqadmin" }, | |
| "createExternalLoadBalancer": true | |
| } |