Packaging the application
$ tt pack TYPE [OPTION ...] ..
tt pack packages an application into a distributable bundle of the specified TYPE:
tgz: create a.tgzarchive.deb: create a DEB package.rpm: create an RPM package.
The command below creates a DEB package for an application:
$ tt pack deb
This command generates a .deb file whose name depends on the environment directory name and the operating system architecture, for example, test-env_0.1.0.0-1_x86_64.deb.
You can also pass various options to the tt pack command to adjust generation properties, for example, customize a bundle name, choose which artifacts should be included, specify the required application dependencies.
-
--all¶ Include all artifacts in a bundle. In this case, a bundle might include snapshots, WAL files, and logs.
-
--app-listAPPLICATIONS¶ Specify the applications included in a bundle.
Example
$ tt pack tgz --app-list app1,app3
-
--cartridge-compat¶ Applicable to:
tgzPackage a Cartridge CLI-compatible archive.
-
--depsSTRINGS¶ Applicable to:
deb,rpmSpecify dependencies included in RPM and DEB packages.
Example
$ tt pack deb --deps 'wget,make>0.1.0,unzip>1,unzip<=7'
-
--deps-fileSTRING¶ Applicable to:
deb,rpmSpecify the path to a file containing dependencies included in RPM and DEB packages. For example, the
package-deps.txtfile below contains several dependencies and their versions:unzip==6.0 neofetch>=6,<7 gcc>8
If this file is placed in the current directory, a
tt packcommand might look like this:$ tt pack deb --deps-file package-deps.txt
-
--filename¶ Specify a bundle name.
Example
$ tt pack tgz --filename sample-app.tar.gz
-
--namePACKAGE_NAME¶ Specify a package name.
Example
$ tt pack tgz --name sample-app --version 1.0.1
-
--preinst¶ Applicable to:
deb,rpmSpecify the path to a pre-install script for RPM and DEB packages.
Example
$ tt pack deb --preinst pre.sh
-
--postinst¶ Applicable to:
deb,rpmSpecify the path to a post-install script for RPM and DEB packages.
Example
$ tt pack deb --postinst post.sh
-
--tarantool-version¶ Specify a Tarantool version for packaging in a Docker container. For use with
--use-dockeronly.
-
--use-docker¶ Build a package in an Ubuntu 18.04 Docker container. To specify a Tarantool version to use in the container, add the
--tarantool-versionoption.Before executing
tt packwith this option, make sure Docker is running.
-
--versionPACKAGE_VERSION¶ Specify a package version.
Example
$ tt pack tgz --name sample-app --version 1.0.1
-
--with-binaries¶ Include Tarantool and
ttbinaries in a bundle.
-
--without-binaries¶ Don’t include Tarantool and
ttbinaries in a bundle.
-
--without-modules¶ Don’t include external modules in a bundle.