Installation and Run Guide
Summary
- This document describes how to run the project locally for development on macOS (using zsh).
Prerequisites
- Docker Desktop (or Docker) and Docker Compose installed and running
- Python 3.9+ and pip
- Change to the repository directory
cd "$(git rev-parse --show-toplevel)"- Start the blockchain server
- Start the test blockchain network first.
cd blockchain-server
docker-compose up -d- Deploy the registry service
cd ../registry-service
docker-compose up --build -d
for id in $(docker-compose ps -q); do
if [ -n "$id" ]; then
echo "Waiting for container $id to stop..."
docker wait "$id"
else
echo "No containers found for this compose project. Use 'docker-compose ps' to inspect."
fi
doneWait for registry-service containers to stop and block until they exit
- Deploy the Update service (SoftwareUpdateContract)
cd ../update_service
docker-compose up --build -dStopping and cleanup
- To stop and remove containers for a service, run in each service directory:
docker-compose downNotes
- On macOS you normally run Docker commands without sudo. If you encounter permission issues, try using sudo.
- Network names or environment variables may vary depending on your local Docker configuration. Use
docker network lsanddocker-compose psto inspect the environment if needed.
Troubleshooting / Logs
- View container logs to diagnose issues:
docker-compose logs -f