mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-07-24 17:12:54 +00:00
* Bump Tarantool client library from 2.4.2 to 3.0.0 * Fix review comments --------- Co-authored-by: Marat Karimov <karimov_m@inbox.ru>
24 lines
736 B
Docker
24 lines
736 B
Docker
FROM tarantool/tarantool:3.3.1 AS builder
|
|
|
|
# install dependencies
|
|
RUN apt update && \
|
|
apt install -y git unzip cmake tt=2.7.0
|
|
|
|
# init tt dir structure, create dir for app, create symlink
|
|
RUN tt init && \
|
|
mkdir app && \
|
|
ln -sfn ${PWD}/app/ ${PWD}/instances.enabled/app
|
|
|
|
# copy cluster configs
|
|
COPY tarantool /opt/tarantool/app
|
|
|
|
# build app
|
|
RUN tt build app
|
|
|
|
# the base image's default healthcheck assumes a single-instance layout and
|
|
# checks a control socket path that doesn't exist for this multi-instance
|
|
# app, so it never reports healthy; check instance status instead.
|
|
HEALTHCHECK --interval=5s --timeout=3s --start-period=15s --retries=6 \
|
|
CMD tt status app | awk 'NR>2{if ($2!="RUNNING") exit 1} END{if (NR<=2) exit 1}'
|
|
|