You can update your data images to enable or disable sharing with others, and add or remove Tags by using the
Team sharing currently only works with GitHub authentication. Microsoft authentication is not supported.
You can specify a lifetime for a data image via the
lifetime flag. This will automatically delete your data image after the time specified, in time duration format (number followed by a unit suffix. Valid units are "h", "m", "s").
If no value is provided, your data image will have an unlimited lifetime, and will only be deleted if you explicitly request it.
If there are data containers running for the expired data image, the data image will not be removed.
If you are an admin of your organisation, you can use the
--org command to update data-images that are part of your organisation.
To rename an existing data image use the
In this tutorial we will create a data image, then share the data image with a GitHub team and add a Tag.
As a prerequisite you should've followed the instructions to install spawnctl
Create a file
development.yamlwith your data image specifications.sourceType: emptyname: devengine: postgresqlversion: 11.0
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.yamlData image 'dev' (10986) created!
You can verify your data image was properly created by running the following command.$ spawnctl get data-imagesID Name Tags Engine SourceType Status CreatedAt Teams Owner10986 dev PostgreSQL Empty Completed 2019-03-26T11:50:35Z true
Notice that both the tags and teams columns have no values.
Run the following command to share the image with a specified team and add a tag.$ spawnctl update data-image dev --team red-gate:spawn-developers --tag v1.0Image : 'dev' updated
You can now verify that the image is shared with the specified team$ spawnctl get data-imagesID Name Tags Engine SourceType Status CreatedAt Teams Owner10986 dev v1.0 PostgreSQL Empty Completed 2019-03-26T11:50:35Z red-gate:spawn-developers true
--removeflag will remove the specified teams and/or tags from the data image.