# Start and build binaries

You can build and start the docker image that has already been built and contains the Cudos binary by following these steps (skip the steps 1,2, and 3 if you have setup your environment before):

  1. Create a directory to use as your workspace
mkdir ~/cudos
cd ~/cudos
  1. Make sure that you are in the correct directory (cudos directory in this example)
  2. Clone the correct branches from the CudosNode (opens new window), CudosBuilders (opens new window), and CudosGravityBridge (opens new window) repositories with renaming the folders accordingly to exactly CudosNode, CudosBuilders, and CudosGravityBridge:
git clone --depth 1 --branch gravity/sdk-0.43 https://github.com/CudoVentures/cudos-node.git CudosNode
git clone --depth 1 --branch sdk-0.43  https://github.com/CudoVentures/cudos-builders.git CudosBuilders
git clone --depth 1 --branch cosmos-sdk-0.43 https://github.com/CudoVentures/cosmos-gravity-bridge.git CudosGravityBridge
  1. Navigate to the directory CudosBuilders/docker/binary-builder directory
  2. Build and start the binaries by running this command:
sudo docker-compose --env-file binary-builder.arg -f binary-builder.yml -p cudos-binary-builder up --build
  1. If you would like to start the docker image that has already been built and contains the cudos binary then run the following command:
sudo docker-compose --env-file binary-builder.arg -f binary-builder.yml -p cudos-binary-builder up