Skip to content

Describe installation procedure for applications on Tarantool #584

@opomuc

Description

@opomuc

Please provide a complete manual where to place custom Lua modules and other configurations files (eg. for tarantoolctl tool) and how to deploy an application written on Tarantool.

There was no common opinion on this in Tarantool chat. Should it be /usr/share/tarantool or /usr/local/tarantool for example.

Activity

Totktonada

Totktonada commented on Aug 1, 2018

@Totktonada
Member

I think /usr PREFIX is exclusively for files under a package manager control, but /usr/local PREFIX (as well as /opt) is for 'manually' installed packages. Modules should follow tarantool install location (at least they do it), so a module install directory depends on how tarantool installed. Correct me if I’m wrong in some way.

There are ways to determine PREFIX with which tarantool was installed. The first one is to use FindTarantool.cmake (see avro-schema for example). By the way, we are going to include this file to tarantool-{dev,devel} packages in the future releases ( tarantool/tarantool#3147 ). The second way is to parse tarantool --version output (see stat module for example). It does not require headers (and so dev/devel packages) being installed.

It is possible to separate tarantool install directory from a module install directory, e. g. add some custom package.{path,cpath} or use rocks (which look for .rocks directory recursively up to a filesystem root).

And I just observed: I have tarantool installed into /usr, but package.{path,cpath} have paths with both prefixes. I guess one can always install modules into /usr/local/share/tarantool and /usr/local/lib64/tarantool (Lua and C) and everything will work everywhere. But I suggest to leave /usr (or a PREFIX a package manager provides) for installing from packages.

added
raw idea[special status] Not ready for size estimation
need feedback[special status] On hold, awaiting feedback
on Aug 3, 2018
kyukhin

kyukhin commented on May 29, 2020

@kyukhin
Contributor

IMHO, Sasha clearly described how it should work. @lenkis what feedback do you expect?

added
ecosystem[area] Task relates to Tarantool's ecosystem (connector, module, other non-server functionality)
and removed
raw idea[special status] Not ready for size estimation
need feedback[special status] On hold, awaiting feedback
on Mar 1, 2022
added
upgradeFunctionality related to upgrade/downgrade
on Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ecosystem[area] Task relates to Tarantool's ecosystem (connector, module, other non-server functionality)guidelinesupgradeFunctionality related to upgrade/downgrade

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Totktonada@opomuc@kyukhin@lenkis@patiencedaur

        Issue actions

          Describe installation procedure for applications on Tarantool · Issue #584 · tarantool/doc