~mna/tulip-cli

c582c8a15abc1d9576d5fc2a5bc676f8d51c13fe — Martin Angers 9 months ago 266f3ff main
Update docker image
2 files changed, 6 insertions(+), 17 deletions(-)

M src/cmds/files/dockerfile.lua
M src/cmds/files/postgres_conf.lua
M src/cmds/files/dockerfile.lua => src/cmds/files/dockerfile.lua +5 -16
@@ 1,30 1,19 @@
return [[
FROM postgres:13
FROM postgres:15

RUN set -ex                      \
      && apt-get --yes update    \
      && apt-get --yes install   \
        build-essential          \
        git                      \
        liblua5.3-dev            \
        lua5.3                   \
        postgresql-server-dev-13 \
        liblua5.4-dev            \
        lua5.4                   \
        postgresql-server-dev-15 \
      && cd /tmp                 \
      && git clone https://github.com/citusdata/pg_cron.git \
      && cd pg_cron              \
      && make                    \
      && make install            \
      && cd /tmp                 \
      && git clone https://github.com/pllua/pllua-ng.git    \
      && cd pllua-ng             \
      && make                    \
        PG_CONFIG=pg_config      \
        LUA_INCDIR=/usr/include/lua5.3 \
        LUALIB=-llua5.3          \
        LUAC=luac5.3             \
        LUA=lua5.3               \
        install
      && make install

COPY ./install_pg_cron.sql /docker-entrypoint-initdb.d/install_pg_cron.sql
COPY ./install_pllua.sql   /docker-entrypoint-initdb.d/install_pllua.sql
]]

M src/cmds/files/postgres_conf.lua => src/cmds/files/postgres_conf.lua +1 -1
@@ 42,6 42,6 @@ listen_addresses = '*'

timezone = 'UTC'

shared_preload_libraries = 'pg_cron, pllua'
shared_preload_libraries = 'pg_cron'
cron.database_name = 'postgres'
]]