Skip to content

Instantly share code, notes, and snippets.

@negasus
Created July 22, 2020 08:13
Show Gist options
  • Save negasus/8547b3eed417de1414f98f1337ee73b2 to your computer and use it in GitHub Desktop.
Save negasus/8547b3eed417de1414f98f1337ee73b2 to your computer and use it in GitHub Desktop.
FROM tarantool/tarantool:2.x-centos7
ENV TARANTOOL_INSTANCE_NAME=default
RUN yum -y update
RUN yum install -y sudo
RUN sudo curl -L https://tarantool.io/installer.sh | sudo -E bash -s -- --repo-only
RUN yum install -y cartridge-cli
RUN yum install -y cmake make gcc unzip git
WORKDIR /opt/tarantool/tnt-main
ADD ./tnt-main .
RUN tarantoolctl rocks install http 1.1.0
RUN cartridge build
CMD ["/bin/sh", "-c", "TARANTOOL_WORKDIR=/var/lib/tarantool/tnt-main.${TARANTOOL_INSTANCE_NAME:-default} TARANTOOL_PID_FILE=/var/run/tarantool/tnt-main.${TARANTOOL_INSTANCE_NAME:-default}.pid TARANTOOL_CONSOLE_SOCK=/var/run/tarantool/tnt-main.${TARANTOOL_INSTANCE_NAME:-default}.control tarantool /opt/tarantool/tnt-main/init.lua"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment