ros 819 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. set -e
  3. cd $(dirname $0)/..
  4. if [ ! -e "./build/initrd/usr/share/ros/os-config.yml" ]; then
  5. ./.dapper release
  6. else
  7. echo "using existing build of ros"
  8. # ./.dapper build-target
  9. fi
  10. source ./scripts/version
  11. echo "---------------------------------"
  12. echo "ln -s /usr/bin/ros /usr/bin/cloud-init-save"
  13. echo "ros config set rancher.cloud_init.datasources [packet:https://metadata.packet.net/]"
  14. #echo "ros config set rancher.cloud_init.datasources [packet:https://192.80.8.124/]"
  15. echo "cloud-init-save"
  16. echo "---------------------------------"
  17. docker run --rm -it \
  18. -v $(pwd)/build/initrd/usr/share:/usr/share \
  19. -v $(pwd)/bin/ros:/usr/bin/ros \
  20. -v /etc/ssl/certs:/etc/ssl/certs \
  21. -v /usr/share/ca-certificates:/usr/share/ca-certificates \
  22. -w /var/lib/rancher \
  23. --entrypoint sh \
  24. rancher/os-base:v0.8.1