-
Notifications
You must be signed in to change notification settings - Fork 55
/
Dockerfile
34 lines (30 loc) · 883 Bytes
/
Dockerfile
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
33
34
FROM rockylinux:8 AS builder
RUN yum update -y
RUN yum install -y make libtool which git
# Copy all files from the repository not included in .dockerignore to /src in the image.
COPY . /src
WORKDIR /src
RUN ./deps/install.sh /arcus || (tail ./deps/install.log; exit 1)
RUN ./config/autorun.sh
RUN ./configure --prefix=/arcus --enable-zk-integration
RUN make && make install
FROM rockylinux:8 AS base
COPY --from=builder /arcus /arcus
ENV PATH=${PATH}:/arcus/bin
EXPOSE 11211/tcp
ENTRYPOINT ["memcached",\
"-E", "/arcus/lib/default_engine.so",\
"-X", "/arcus/lib/ascii_scrub.so",\
"-u", "root",\
"-D", ":",\
"-r"]
# for arcus-operator
FROM base
RUN yum update -y
RUN yum install -y bind-utils nc
RUN yum clean all -y
ENV MEMCACHED_DIR=/arcus-memcached
ENV PATH=${PATH}:${MEMCACHED_DIR}
ENV ARCUS_USER=root
WORKDIR ${MEMCACHED_DIR}
RUN ln -s /arcus/lib ${MEMCACHED_DIR}/.libs