Fix for #192 added PV for postgres #193
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added persistent volume for postgres container in provisioner.
postgres data:
docker exec -i deploy_tink-cli_1 tink template list
+--------------------------------------+---------------+-------------------------------+-------------------------------+
| TEMPLATE ID | TEMPLATE NAME | CREATED AT | UPDATED AT |
+--------------------------------------+---------------+-------------------------------+-------------------------------+
| 2d4cfe8a-5630-481a-89ff-b34dcabad795 | hello-world | 2020-06-24 12:27:44 +0000 UTC | 2020-06-24 12:27:44 +0000 UTC |
+--------------------------------------+---------------+-------------------------------+-------------------------------+
stopping and removing of container
vagrant@provisioner:/vagrant/deploy$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f5196b56e446 postgres:10-alpine "docker-entrypoint.s…" 9 minutes ago Up 9 minutes (healthy) 0.0.0.0:5432->5432/tcp deploy_db_1
vagrant@provisioner:/vagrant/deploy$ docker stop f5196b56e446
f5196b56e446
vagrant@provisioner:/vagrant/deploy$ docker rm f5196b56e446
f5196b56e446
restarting of container
vagrant@provisioner:/vagrant/deploy$ docker-compose up -d db
WARNING: The TINKERBELL_TINK_USERNAME variable is not set. Defaulting to a blank string.
WARNING: The TINKERBELL_TINK_PASSWORD variable is not set. Defaulting to a blank string.
Creating deploy_db_1 ... done
verifying data
vagrant@provisioner:/vagrant/deploy$ docker exec -i deploy_tink-cli_1 tink template list
+--------------------------------------+---------------+-------------------------------+-------------------------------+
| TEMPLATE ID | TEMPLATE NAME | CREATED AT | UPDATED AT |
+--------------------------------------+---------------+-------------------------------+-------------------------------+
| 2d4cfe8a-5630-481a-89ff-b34dcabad795 | hello-world | 2020-06-24 12:27:44 +0000 UTC | 2020-06-24 12:27:44 +0000 UTC |
+--------------------------------------+---------------+-------------------------------+-------------------------------+