-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Timestamp type fields
Update dependencies as well to the newest possible versions. The java.time.Instant converter was added only to the driver version 0.12.0 and works only with Tarantool versions 2.11.0+, so using the Timestamp values will lead to errors on previous Tarantool versions. The converter does not execute any checks for that for simplicity and to avoid extra performance impact.
- Loading branch information
Showing
18 changed files
with
100 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
FROM tgagor/centos:stream8 AS tarantool-base | ||
ARG TARANTOOL_VERSION=2.8 | ||
ARG TARANTOOL_VERSION=2.11.0 | ||
FROM tarantool/tarantool:${TARANTOOL_VERSION}-centos7 AS cartridge-base | ||
|
||
ARG TARANTOOL_SERVER_USER="tarantool" | ||
ARG TARANTOOL_SERVER_UID=1000 | ||
ARG TARANTOOL_SERVER_GROUP="tarantool" | ||
ARG TARANTOOL_SERVER_GID=1000 | ||
ARG TARANTOOL_WORKDIR="/app" | ||
ARG TARANTOOL_RUNDIR="/tmp/run" | ||
ARG TARANTOOL_DATADIR="/tmp/data" | ||
ARG TARANTOOL_INSTANCES_FILE="./instances.yml" | ||
ENV TARANTOOL_WORKDIR=$TARANTOOL_WORKDIR | ||
ENV TARANTOOL_RUNDIR=$TARANTOOL_RUNDIR | ||
ENV TARANTOOL_DATADIR=$TARANTOOL_DATADIR | ||
ENV TARANTOOL_INSTANCES_FILE=$TARANTOOL_INSTANCES_FILE | ||
RUN curl -L https://tarantool.io/installer.sh | VER=$TARANTOOL_VERSION /bin/bash -s -- --repo-only && \ | ||
yum -y install cmake make gcc gcc-c++ git unzip tarantool tarantool-devel cartridge-cli && \ | ||
# a yum bug requires setting ulimit, see https://bugzilla.redhat.com/show_bug.cgi?id=1537564 | ||
RUN ulimit -n 1024 &&\ | ||
yum -y install cmake make gcc gcc-c++ git unzip cartridge-cli && \ | ||
yum clean all | ||
RUN groupadd -g $TARANTOOL_SERVER_GID $TARANTOOL_SERVER_GROUP && \ | ||
useradd -u $TARANTOOL_SERVER_UID -g $TARANTOOL_SERVER_GID -m -s /bin/bash $TARANTOOL_SERVER_USER \ | ||
|| true | ||
USER $TARANTOOL_SERVER_USER:$TARANTOOL_SERVER_GROUP | ||
RUN cartridge version | ||
|
||
FROM tarantool-base AS cartridge-base | ||
FROM cartridge-base AS cartridge-app | ||
ARG TARANTOOL_WORKDIR="/app" | ||
ARG TARANTOOL_RUNDIR="/tmp/run" | ||
ARG TARANTOOL_DATADIR="/tmp/data" | ||
ARG TARANTOOL_LOGDIR="/tmp/log" | ||
ARG TARANTOOL_INSTANCES_FILE="./instances.yml" | ||
ARG TARANTOOL_CLUSTER_COOKIE="testapp-cluster-cookie" | ||
ENV TARANTOOL_WORKDIR=$TARANTOOL_WORKDIR | ||
ENV TARANTOOL_RUNDIR=$TARANTOOL_RUNDIR | ||
ENV TARANTOOL_DATADIR=$TARANTOOL_DATADIR | ||
ENV TARANTOOL_LOGDIR=$TARANTOOL_LOGDIR | ||
ENV TARANTOOL_INSTANCES_FILE=$TARANTOOL_INSTANCES_FILE | ||
ENV TARANTOOL_CLUSTER_COOKIE=$TARANTOOL_CLUSTER_COOKIE | ||
WORKDIR $TARANTOOL_WORKDIR | ||
CMD cartridge build && cartridge start --run-dir=$TARANTOOL_RUNDIR --data-dir=$TARANTOOL_DATADIR --cfg=$TARANTOOL_INSTANCES_FILE | ||
CMD cartridge build && \ | ||
cartridge start --run-dir=$TARANTOOL_RUNDIR --data-dir=$TARANTOOL_DATADIR \ | ||
--log-dir=$TARANTOOL_LOGDIR --cfg=$TARANTOOL_INSTANCES_FILE |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.