Connect Tarantool Docker image to Postgres

155 Views Asked by At

I'm trying to connect Tarantool Docker Image to local PostgreSQL, to replicate some test data, and ran into the following problems:

  1. It seems there is no CL (except Tarantool console) to check which files are in place (exec bin/bash fails)
  2. pg = require('pg') leads to an error: "init.lua:4: module 'pg.driver' not found", despite the presence of the pg module in the Docker description
  3. I have doubts about how to replicate efficiently 4 tables, and relations between them, to the container from outside Postgres

Does anyone know sources to dig in and find solutions to those problems? Any direction would be greatly appreciated.

1

There are 1 best solutions below

4
On
  1. docker exec -ti tnt_container sh
  2. the issue. You should find an older base image or build it yourself.
  3. This is PostgreSQL-related doubts. You may pass batches of data to pg functions or use intermediate application to transfer data via COPY. It looks like tarantool's pg driver does not support COPY.