Add image build dev script

This commit is contained in:
Mark Burnett 2017-07-24 12:28:05 -05:00
parent 527d08e5a2
commit 74bde0f6f3
2 changed files with 25 additions and 0 deletions

View File

@ -57,6 +57,8 @@ Then on a node:
PROMENADE_LOAD_IMAGE=/vagrant/promenade.tar bash /vagrant/up.sh /vagrant/path/to/node-config.yaml
```
These commands are combined in a convenience script at `tools/dev-build.sh`.
To build the image from behind a proxy, you can:
```bash

23
tools/dev-build.sh Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -ex
echo === Cleaning up old data ===
rm -rf promenade.tar configs
mkdir configs
echo === Building image ===
docker build -t quay.io/attcomdev/promenade:latest .
echo === Generating updated configuration ===
docker run --rm -t \
-v $(pwd):/target quay.io/attcomdev/promenade:latest \
promenade -v \
generate \
-c /target/example/vagrant-input-config.yaml \
-o /target/configs
echo === Saving image ===
docker save -o promenade.tar quay.io/attcomdev/promenade:latest
echo === Done ===