mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
This adds the following test: 1. cluster comes up (node 1,2,3), status normal 2. Pause node 3 3. Insert keys making sure to filter out the keys that will go to the paused node 4. Wait for status to become degraded 5. Unpause node 3 6. Wait for status to get back to normal 7. Check that keys were replicated to all 3 nodes
30 lines
789 B
Text
30 lines
789 B
Text
# This Dockerfile is used for cluster testing - it produces a much larger image
|
|
# and includes all of Go as well as some utilities.
|
|
|
|
FROM golang:1.16
|
|
|
|
LABEL maintainer "dev@pilosa.com"
|
|
|
|
COPY . /go/src/github.com/molecula/featurebase/
|
|
|
|
RUN cd /go/src/github.com/molecula/featurebase \
|
|
&& make install FLAGS="-a -mod=vendor"
|
|
|
|
# download pumba for fault injection
|
|
ADD https://github.com/alexei-led/pumba/releases/download/0.6.0/pumba_linux_amd64 /pumba
|
|
RUN chmod +x /pumba
|
|
|
|
# add docker client to pause/unpause nodes
|
|
RUN apt update
|
|
RUN apt install -y docker.io
|
|
|
|
RUN cp /go/bin/featurebase /featurebase
|
|
|
|
COPY LICENSE /LICENSE
|
|
COPY NOTICE /NOTICE
|
|
|
|
EXPOSE 10101
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT ["bash", "-c"]
|
|
CMD ["/featurebase", "server", "--data-dir", "/data", "--bind", "http://0.0.0.0:10101"]
|