tarantool / docker

Docker images for tarantool database
https://hub.docker.com/r/tarantool/tarantool
52 stars 25 forks source link

How to make queue available globally at beginning? #200

Closed kokizzu closed 2 years ago

kokizzu commented 3 years ago

I need to run this command at beginning queue = require 'queue':

$ docker exec -it full_tarantool_1 console
#connected to unix/:/var/run/tarantool/tarantool.sock
#unix/:/var/run/tarantool/tarantool.sock> queue = require 'queue'

How to do this when using tarantool/tarantool docker? Should I change the tarantool-entrypoint.lua?

Totktonada commented 3 years ago

There are two variants of running a Lua code within the container:

  1. Adding application code with a volume mount.
  2. Adding application code using container inheritance.

In your code you should also create a tube and grant privileges to allow a connector to work with the tube.

Totktonada commented 2 years ago

If you still have questions around using the tarantool/queue module in the docker container, feel free to reopen and ask.