executable_mjru-docker 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env bash
  2. help_main()
  3. {
  4. echo "\
  5. Usage: mjru-docker COMMANDS ARGS...
  6. RUN mjru-docker with ARGS
  7. COMMAND must be one of the sub-commands listed below:
  8. general commands
  9. registry list images on internal registry
  10. tags list tags of images
  11. tag describe image tag
  12. Report bugs to: go.wigust@gmail.com."
  13. }
  14. case "$1" in
  15. --help|-h)
  16. help_main
  17. ;;
  18. registry)
  19. docker-ls repositories --registry https://docker-registry.intr/ --allow-insecure "${@:2}"
  20. ;;
  21. tags)
  22. docker-ls tags --registry https://docker-registry.intr/ --allow-insecure "${@:2}"
  23. ;;
  24. tag)
  25. docker-ls tag --registry https://docker-registry.intr/ --allow-insecure "${@:2}"
  26. ;;
  27. *)
  28. help_main
  29. ;;
  30. esac