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.

compile_docker_image.sh 186B

12345678910
  1. #!/bin/bash
  2. if [ -z "$1" ]; then
  3. echo "A name for the image is needed"
  4. exit 1
  5. fi
  6. docker build -t 192.168.27.25:5000/$(whoami)/$1 .
  7. docker push 192.168.27.25:5000/$(whoami)/$1