diff --git a/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/README.md b/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/README.md index bd192edf5c..f3873f099b 100644 --- a/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/README.md +++ b/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/README.md @@ -59,3 +59,14 @@ To run the cluster, go to the `sharding` directory in the terminal and perform t - [10, 167, 'Queen', 1970] ... ``` + + +## Packaging + +To package an application into a `.tgz` archive, use the `tt pack` command: + +```console +$ tt pack tgz --app-list sharded_cluster +``` + +Note that the necessary `vshard` dependency is specified in the [sharded_cluster-scm-1.rockspec](sharded_cluster-scm-1.rockspec) file. diff --git a/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/sharded_cluster-scm-1.rockspec b/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/sharded_cluster-scm-1.rockspec new file mode 100644 index 0000000000..cc9d8ca85b --- /dev/null +++ b/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/sharded_cluster-scm-1.rockspec @@ -0,0 +1,12 @@ +package = 'sharded_cluster' +version = 'scm-1' +source = { + url = '/dev/null', +} + +dependencies = { + 'vshard == 0.1.25' +} +build = { + type = 'none'; +}