| 1 | ARG FALKORDB_VERSION=v4.2.1 |
| 2 | |
| 3 | FROM oliver006/redis_exporter:alpine as redis_exporter |
| 4 | |
| 5 | |
| 6 | FROM rust:1-slim-buster as healthcheck_builder |
| 7 | |
| 8 | RUN apt-get update -y && apt-get install -y pkg-config build-essential cmake libtool openssl libssl-dev |
| 9 | |
| 10 | WORKDIR /healthcheck |
| 11 | |
| 12 | COPY ../healthcheck_rs/ /healthcheck |
| 13 | |
| 14 | RUN cargo build --release |
| 15 | |
| 16 | |
| 17 | FROM falkordb/falkordb:$FALKORDB_VERSION |
| 18 | |
| 19 | RUN apt-get update && apt-get install -y curl jq openssl |
| 20 | |
| 21 | RUN mkdir -p /falkordb |
| 22 | |
| 23 | WORKDIR /falkordb |
| 24 | |
| 25 | COPY falkordb-node/sentinel.conf . |
| 26 | COPY falkordb-node/node.conf . |
| 27 | COPY falkordb-node/node-entrypoint.sh /usr/local/bin/ |
| 28 | COPY --from=redis_exporter /redis_exporter /usr/local/bin/ |
| 29 | COPY --from=healthcheck_builder /healthcheck/target/release/healthcheck /usr/local/bin/healthcheck |
| 30 | |
| 31 | RUN chown redis:redis /falkordb/* && \ |
| 32 | chmod +x /usr/local/bin/node-entrypoint.sh |
| 33 | |
| 34 | CMD ["node-entrypoint.sh"] |