-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.keydb_json_search
32 lines (25 loc) · 1.11 KB
/
Dockerfile.keydb_json_search
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:20.04 AS updated
RUN apt update
RUN apt install -y git make
FROM updated AS redisearch
ARG REDISEARCH_BRANCH
WORKDIR /keydb
RUN git clone -b ${REDISEARCH_BRANCH} --recursive https://github.com/RediSearch/RediSearch.git
RUN cd RediSearch && make setup
RUN cd RediSearch && make build
FROM updated AS rejson
ARG REJSON_BRANCH
WORKDIR /keydb
RUN apt install -y rustc cargo
RUN git clone -b ${REJSON_BRANCH} --recursive https://github.com/RedisJSON/RedisJSON.git
#RUN git clone --recursive https://github.com/RedisJSON/RedisJSON.git
RUN cd RedisJSON && make setup
RUN cd RedisJSON && make build
FROM vsaps/keydb_main
COPY --from=redisearch /keydb/RediSearch/bin/linux-x64-release/search/redisearch.so /etc/libs/redisearch.so
COPY --from=rejson /keydb/RedisJSON/bin/linux-x64-release/target/release/deps/librejson.so /etc/libs/librejson.so
COPY ./config/keydb.conf /etc/keydb/keydb.conf
COPY ./load_module_entrypoint.sh /usr/local/bin/load_module_entrypoint.sh
RUN chmod +x /usr/local/bin/load_module_entrypoint.sh
ENTRYPOINT [ "/usr/local/bin/load_module_entrypoint.sh" ]
CMD ["keydb-server","/etc/keydb/keydb.conf"]