Skip to content

Commit 55ffbe2

Browse files
Add a 'rockspec' file to a sharding sample (#3926)
1 parent 257bf3f commit 55ffbe2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,14 @@ To run the cluster, go to the `sharding` directory in the terminal and perform t
5959
- [10, 167, 'Queen', 1970]
6060
...
6161
```
62+
63+
64+
## Packaging
65+
66+
To package an application into a `.tgz` archive, use the `tt pack` command:
67+
68+
```console
69+
$ tt pack tgz --app-list sharded_cluster
70+
```
71+
72+
Note that the necessary `vshard` dependency is specified in the [sharded_cluster-scm-1.rockspec](sharded_cluster-scm-1.rockspec) file.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package = 'sharded_cluster'
2+
version = 'scm-1'
3+
source = {
4+
url = '/dev/null',
5+
}
6+
7+
dependencies = {
8+
'vshard == 0.1.25'
9+
}
10+
build = {
11+
type = 'none';
12+
}

0 commit comments

Comments
 (0)