mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
- Add auth-token for featurebase import, backup and restore - Add auth-token to http request - Create a cluster tests with auth enabled - Add test for import with auth enabled
77 lines
2.9 KiB
YAML
77 lines
2.9 KiB
YAML
version: '2'
|
|
services:
|
|
pilosa1:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile-clustertests
|
|
image: ptest
|
|
environment:
|
|
- PILOSA_NAME=pilosa1
|
|
- PILOSA_ETCD_DIR=/root/.etcd
|
|
- PILOSA_ETCD_LISTEN_CLIENT_ADDRESS=http://0.0.0.0:10201
|
|
- PILOSA_ETCD_ADVERTISE_CLIENT_ADDRESS=http://pilosa1:10201
|
|
- PILOSA_ETCD_LISTEN_PEER_ADDRESS=http://0.0.0.0:10301
|
|
- PILOSA_ETCD_ADVERTISE_PEER_ADDRESS=http://pilosa1:10301
|
|
- PILOSA_ETCD_INITIAL_CLUSTER=pilosa1=http://pilosa1:10301,pilosa2=http://pilosa2:10301,pilosa3=http://pilosa3:10301
|
|
- PILOSA_CLUSTER_REPLICAS=3
|
|
networks:
|
|
- pilosanet
|
|
command:
|
|
- "/featurebase server --bind pilosa1:10101 -c /go/src/github.com/molecula/featurebase/internal/authclustertests/testdata/featurebase.conf"
|
|
pilosa2:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile-clustertests
|
|
image: ptest
|
|
environment:
|
|
- PILOSA_NAME=pilosa2
|
|
- PILOSA_ETCD_DIR=/root/.etcd
|
|
- PILOSA_ETCD_LISTEN_CLIENT_ADDRESS=http://0.0.0.0:10201
|
|
- PILOSA_ETCD_ADVERTISE_CLIENT_ADDRESS=http://pilosa2:10201
|
|
- PILOSA_ETCD_LISTEN_PEER_ADDRESS=http://0.0.0.0:10301
|
|
- PILOSA_ETCD_ADVERTISE_PEER_ADDRESS=http://pilosa2:10301
|
|
- PILOSA_ETCD_INITIAL_CLUSTER=pilosa1=http://pilosa1:10301,pilosa2=http://pilosa2:10301,pilosa3=http://pilosa3:10301
|
|
- PILOSA_CLUSTER_REPLICAS=3
|
|
networks:
|
|
- pilosanet
|
|
command:
|
|
- "/featurebase server --bind pilosa2:10101 -c /go/src/github.com/molecula/featurebase/internal/authclustertests/testdata/featurebase.conf"
|
|
pilosa3:
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile-clustertests
|
|
image: ptest
|
|
environment:
|
|
- PILOSA_NAME=pilosa3
|
|
- PILOSA_ETCD_DIR=/root/.etcd
|
|
- PILOSA_ETCD_LISTEN_CLIENT_ADDRESS=http://0.0.0.0:10201
|
|
- PILOSA_ETCD_ADVERTISE_CLIENT_ADDRESS=http://pilosa3:10201
|
|
- PILOSA_ETCD_LISTEN_PEER_ADDRESS=http://0.0.0.0:10301
|
|
- PILOSA_ETCD_ADVERTISE_PEER_ADDRESS=http://pilosa3:10301
|
|
- PILOSA_ETCD_INITIAL_CLUSTER=pilosa1=http://pilosa1:10301,pilosa2=http://pilosa2:10301,pilosa3=http://pilosa3:10301
|
|
- PILOSA_CLUSTER_REPLICAS=3
|
|
networks:
|
|
- pilosanet
|
|
command:
|
|
- "/featurebase server --bind pilosa3:10101 -c /go/src/github.com/molecula/featurebase/internal/authclustertests/testdata/featurebase.conf"
|
|
client1:
|
|
build:
|
|
context: .
|
|
dockerfile: ../clustertests/Dockerfile
|
|
depends_on:
|
|
- "pilosa1"
|
|
- "pilosa2"
|
|
- "pilosa3"
|
|
environment:
|
|
- ENABLE_PILOSA_CLUSTER_TESTS=1
|
|
- GO111MODULE=on
|
|
- PROJECT=authclustertests
|
|
- ENABLE_AUTH=1
|
|
networks:
|
|
- pilosanet
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
command:
|
|
- "cd /go/src/github.com/molecula/featurebase/ && go test -mod=vendor -v -count=1 github.com/molecula/featurebase/v3/internal/clustertests"
|
|
networks:
|
|
pilosanet:
|