-
Notifications
You must be signed in to change notification settings - Fork 73
/
Dockerfile-quickstart
30 lines (22 loc) · 1.06 KB
/
Dockerfile-quickstart
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
FROM deepfabric/build as builder
COPY . /root/go/src/github.com/deepfabric/elasticell
WORKDIR /root/go/src/github.com/deepfabric/elasticell
RUN make release
FROM deepfabric/centos
COPY --from=builder /root/go/src/github.com/deepfabric/elasticell/dist/cell /usr/local/bin/cell
COPY --from=builder /root/go/src/github.com/deepfabric/elasticell/dist/pd /usr/local/bin/pd
COPY --from=builder /root/go/src/github.com/deepfabric/elasticell/dist/proxy /usr/local/bin/proxy
RUN mkdir -p /apps/deepfabric/cfg \
&& mkdir -p /apps/deepfabric/log \
&& mkdir -p /apps/deepfabric/pd1/data \
&& mkdir -p /apps/deepfabric/pd2/data \
&& mkdir -p /apps/deepfabric/pd3/data \
&& mkdir -p /apps/deepfabric/cell1/data \
&& mkdir -p /apps/deepfabric/cell2/data \
&& mkdir -p /apps/deepfabric/cell3/data
ENTRYPOINT ["/usr/local/bin/cell"]
COPY ./quickstart-cfgs /apps/deepfabric/cfg
COPY ./entrypoint-quickstart.sh /apps/deepfabric
RUN chmod +x /apps/deepfabric/entrypoint-quickstart.sh
WORKDIR /apps/deepfabric
ENTRYPOINT ["/apps/deepfabric/entrypoint-quickstart.sh"]