mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
get rid of 'image' in clustertests which was causing issues
This commit is contained in:
parent
fac5bdbfbf
commit
2cc65ccae4
3 changed files with 37 additions and 7 deletions
35
Dockerfile-clustertests-client
Normal file
35
Dockerfile-clustertests-client
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# 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
|
||||
|
||||
# add docker-compose so tests can use it for stuff
|
||||
ADD https://github.com/docker/compose/releases/latest/download/docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
|
||||
RUN chmod +x /usr/local/bin/docker-compose
|
||||
|
||||
RUN cp /go/bin/featurebase /featurebase
|
||||
|
||||
COPY NOTICE /NOTICE
|
||||
|
||||
COPY ./internal/clustertests /go/src/github.com/molecula/featurebase/internal/clustertests
|
||||
|
||||
EXPOSE 10101
|
||||
VOLUME /data
|
||||
|
||||
ENTRYPOINT ["bash", "-c"]
|
||||
CMD ["/featurebase", "server", "--data-dir", "/data", "--bind", "http://0.0.0.0:10101"]
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
FROM ptest
|
||||
|
||||
COPY . /go/src/github.com/molecula/featurebase/internal/clustertests
|
||||
|
|
@ -4,7 +4,6 @@ services:
|
|||
build:
|
||||
context: ../..
|
||||
dockerfile: Dockerfile-clustertests
|
||||
image: ptest
|
||||
environment:
|
||||
- PILOSA_NAME=pilosa1
|
||||
- PILOSA_ETCD_DIR=/root/.etcd
|
||||
|
|
@ -22,7 +21,6 @@ services:
|
|||
build:
|
||||
context: ../..
|
||||
dockerfile: Dockerfile-clustertests
|
||||
image: ptest
|
||||
environment:
|
||||
- PILOSA_NAME=pilosa2
|
||||
- PILOSA_ETCD_DIR=/root/.etcd
|
||||
|
|
@ -40,7 +38,6 @@ services:
|
|||
build:
|
||||
context: ../..
|
||||
dockerfile: Dockerfile-clustertests
|
||||
image: ptest
|
||||
environment:
|
||||
- PILOSA_NAME=pilosa3
|
||||
- PILOSA_ETCD_DIR=/root/.etcd
|
||||
|
|
@ -56,7 +53,8 @@ services:
|
|||
- "/featurebase server --bind pilosa3:10101 ${CLUSTERTESTS_FB_ARGS}"
|
||||
client1:
|
||||
build:
|
||||
context: .
|
||||
context: ../..
|
||||
dockerfile: Dockerfile-clustertests-client
|
||||
depends_on:
|
||||
- "pilosa1"
|
||||
- "pilosa2"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue