build-docker-images.sh 665 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. set -e
  3. if ! command -v docker-compose &> /dev/null
  4. then
  5. echo "docker-compose not found. Skipping docker image builds."
  6. exit 0
  7. fi
  8. # Build joystream/apps docker image
  9. echo "Building 'joystream/apps' docker image..."
  10. docker-compose build colossus
  11. # Build the pioneer docker image
  12. echo "Building pioneer docker image"
  13. docker-compose build pioneer
  14. if [[ "$SKIP_JOYSTREAM_NODE" = 1 || "$SKIP_JOYSTREAM_NODE" = "true" ]]; then
  15. echo "Skipping build of joystream/node docker image."
  16. else
  17. # TODO: Try to fetch a cached joystream/node image
  18. # if one is found matching code shasum instead of building
  19. docker-compose build joystream-node
  20. fi