-
Notifications
You must be signed in to change notification settings - Fork 59
Usage
All commands should be run in PowerShell, not in cmd.exe.
!!! run BEFORE clone repo !!!
git config --global core.autocrlf false
In the Windows operating system, the make utility is typically absent.
Therefore, you will need to run docker-compose manually.
# Generate config
docker buildx build --tag generateconfig-env --file Dockerfile-generateconfig-env .
docker run --rm --volume ${PWD}/:/code/ generateconfig-env
# Run containers
docker compose up -d
- start stand - at the first run the directories
etc/
of configuration files andstorage/
for data storage will be generated:make start
- stop stand:
make stop
- restart stand:
make restart
- update image versions and start:
make update
- clean unused docker objects:
make clean
- clean config and storage files - deleting data for redis, mongo, s3, any-sync-*:
make cleanEtcStorage
docker-compose logs -f any-sync-node
docker-compose logs -f any-sync-filenode
docker-compose logs -f
docker compose exec mongo-1 bash
docker compose exec any-sync-node-1 bash
docker compose exec any-sync-coordinator bash
docker compose restart any-sync-node-1
docker compose exec mongo-1 mongosh 127.0.0.1:27001/coordinator --eval 'db.getMongo().setReadPref("primaryPreferred"); db.nodeConf.find().sort( { _id: -1 } ).limit(1)'
Download client for desktop
Use <pathToRepo>/etc/client.yml
as a network configuration for the clients.
See the documentation for more details.
ANYTYPE_LOG_LEVEL="*=DEBUG" ANYPROF=:6060 ANY_SYNC_NETWORK=$(pwd)/etc/client.yml /Applications/Anytype.app/Contents/MacOS/Anytype
docker compose exec any-sync-node-1 any-sync-node -v
docker compose exec any-sync-node-2 any-sync-node -v
docker compose exec any-sync-node-3 any-sync-node -v
docker compose exec any-sync-coordinator any-sync-coordinator -v
docker compose exec any-sync-filenode any-sync-filenode -v
docker compose exec any-sync-consensusnode any-sync-consensusnode -v
for I in any-sync-node-{1..3}; do docker compose exec $I any-sync-node -v; done
for I in any-sync-{coordinator,filenode,consensusnode}; do docker compose exec $I $I -v; done
Thank you for your desire to develop Anytype together!
❤️ This project and everyone involved in it is governed by the Code of Conduct.
🧑<200d>💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.
🫢 For security findings, please email [email protected] and refer to our security guide for more information.
🤝 Follow us on Github and join the Contributors Community.
Made by Any — a Swiss association 🇨 🇭
Licensed under MIT.