You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
279 B

  1. #!/bin/sh
  2. warFrom="zkweb100.war"
  3. warTo="zkweb.war"
  4. if [ "$1" != "" ]
  5. then
  6. warFrom=$1
  7. fi
  8. if [ "$2" != "" ]
  9. then
  10. warTo=$2
  11. fi
  12. echo "$warFrom => $warTo"
  13. docker build -t shihxuancheng/wildfly-cluster --build-arg WAR_FILE_FROM=$warFrom --build-arg WAR_FILE_DEPLOY=$warTo .