To setup commune clone the repo and run the following commands
git clone https://github.com/commune-ai/commune.git
cd commune make pull # or git submodule update --init --recursive --force
Please note that running commune outside of docker will require you to install the dependencies yourself. If you are running commune with docker, you can skip to the next section.
Ensure that you have Docker installed on your machine. If you don't, you can follow the official Docker installation guide for your operating system.
docker-compose up # or docker build -t commune .
docker-compose up
make enter # or docker exec -it commune bash
To exit the container, run the following command:
exit
To run commands inside the container, you can use the following command:
docker exec -it commune bash -c "c modules"
To Kill the container, run the following command:
docker-compose down
Congratulations! Commune is now set up and running inside a Docker container.
cd commune pip install -e ./
const teste = 'teste'
chmod +x ./scripts/* # make sure the scripts are executable sudo ./scripts/install_npm_env.sh
c modules
That's it! Commune is now set up and ready to roll on your local machine.
Whether you choose to set up Commune with Docker or without it, you're all set to leverage the power of Commune and connect your Python objects in a collaborative ecosystem. Have fun exploring the possibilities and making the most out of Commune!
Note: Make sure to follow the official Commune documentation for detailed instructions and additional configuration options.
# check the port range c port_range
c set_port_range 8000 9000 # set the port range to 8000-9000