mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
s3 configuration for integration tests
This commit is contained in:
parent
7c4fb0fa7e
commit
ff9afea58e
4 changed files with 19 additions and 7 deletions
9
Makefile
9
Makefile
|
@ -2,6 +2,10 @@
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
|
||||||
generate_etc:
|
generate_etc:
|
||||||
|
$(eval store="s3_store")
|
||||||
|
ifeq ($(INTEGRATION), true)
|
||||||
|
$(eval store="s3_store_dev")
|
||||||
|
endif
|
||||||
install -d \
|
install -d \
|
||||||
tmp/etc/any-sync-node-{1..3}/ \
|
tmp/etc/any-sync-node-{1..3}/ \
|
||||||
tmp/etc/any-sync-filenode/ \
|
tmp/etc/any-sync-filenode/ \
|
||||||
|
@ -9,7 +13,7 @@ generate_etc:
|
||||||
cat etc/{network,common,node-1}.yml > tmp/etc/any-sync-node-1/config.yml
|
cat etc/{network,common,node-1}.yml > tmp/etc/any-sync-node-1/config.yml
|
||||||
cat etc/{network,common,node-2}.yml > tmp/etc/any-sync-node-2/config.yml
|
cat etc/{network,common,node-2}.yml > tmp/etc/any-sync-node-2/config.yml
|
||||||
cat etc/{network,common,node-3}.yml > tmp/etc/any-sync-node-3/config.yml
|
cat etc/{network,common,node-3}.yml > tmp/etc/any-sync-node-3/config.yml
|
||||||
cat etc/{network,common,filenode}.yml > tmp/etc/any-sync-filenode/config.yml
|
cat etc/{network,common,filenode,$(store)}.yml > tmp/etc/any-sync-filenode/config.yml
|
||||||
cat etc/{network,common,coordinator}.yml > tmp/etc/any-sync-coordinator/config.yml
|
cat etc/{network,common,coordinator}.yml > tmp/etc/any-sync-coordinator/config.yml
|
||||||
cat etc/network.yml | grep -v '^network:' > tmp/etc/any-sync-coordinator/network.yml
|
cat etc/network.yml | grep -v '^network:' > tmp/etc/any-sync-coordinator/network.yml
|
||||||
|
|
||||||
|
@ -25,6 +29,9 @@ clean:
|
||||||
pull:
|
pull:
|
||||||
docker compose pull
|
docker compose pull
|
||||||
|
|
||||||
|
down:
|
||||||
|
docker compose down
|
||||||
|
|
||||||
restart: stop start
|
restart: stop start
|
||||||
update: stop pull start
|
update: stop pull start
|
||||||
upgrade: stop clean start
|
upgrade: stop clean start
|
||||||
|
|
|
@ -3,12 +3,6 @@ account:
|
||||||
peerKey: kTZYumPO7MoEsU7ZyeNTLFgYaO3rGFEHk2qXJdqnV9O0DhMk/wdbgkwrbqtIpVH4Bkx7LPEHesTg3DfH4G524g==
|
peerKey: kTZYumPO7MoEsU7ZyeNTLFgYaO3rGFEHk2qXJdqnV9O0DhMk/wdbgkwrbqtIpVH4Bkx7LPEHesTg3DfH4G524g==
|
||||||
signingKey: kTZYumPO7MoEsU7ZyeNTLFgYaO3rGFEHk2qXJdqnV9O0DhMk/wdbgkwrbqtIpVH4Bkx7LPEHesTg3DfH4G524g==
|
signingKey: kTZYumPO7MoEsU7ZyeNTLFgYaO3rGFEHk2qXJdqnV9O0DhMk/wdbgkwrbqtIpVH4Bkx7LPEHesTg3DfH4G524g==
|
||||||
|
|
||||||
s3Store:
|
|
||||||
bucket: anytype-dev-filenode
|
|
||||||
maxThreads: 16
|
|
||||||
profile: default
|
|
||||||
region: eu-central-1
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
isCluster: false
|
isCluster: false
|
||||||
url: redis://redis:6379?dial_timeout=3&read_timeout=6s
|
url: redis://redis:6379?dial_timeout=3&read_timeout=6s
|
||||||
|
|
5
etc/s3_store.yml
Normal file
5
etc/s3_store.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
s3Store:
|
||||||
|
bucket: anytype-dev-filenode
|
||||||
|
maxThreads: 16
|
||||||
|
profile: default
|
||||||
|
region: eu-central-1
|
6
etc/s3_store_dev.yml
Normal file
6
etc/s3_store_dev.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
s3Store:
|
||||||
|
bucket: s3-emulator:4569
|
||||||
|
maxThreads: 16
|
||||||
|
profile: default
|
||||||
|
region: eu-central-1
|
||||||
|
endpoint: http://s3-emulator:4569
|
Loading…
Add table
Add a link
Reference in a new issue