In order to Spawn a database to work against, you'll first need to create a Data Image.
$ spawnctl create data-image -f ./development.yaml
To override any Tags specified in the
yaml file, use the
$ spawnctl create data-image -f ./development.yaml --tag v1.0
In this tutorial we will create a Data Image.
As a prerequisite you should've followed the instructions to install spawnctl
Create a file
development.yamlwith your Data Image specifications.
sourceType: empty name: dev engine: postgresql
In this case we want to create a PostgreSQL Data Image that is completely empty and is named
Run the following command to create a Data Image.
$ spawnctl create data-image -f ./development.yaml Data image 'dev' created!
You can verify your Data Image by running the following command.
$ spawnctl get data-images NAME IMAGE ID ENGINE STATUS MESSAGE CREATED dev 10001 PostgreSQL 2 Created 2 minutes ago