docker.makefile 756 B

1234567891011121314151617181920
  1. docker-build: all
  2. @-docker rmi ${DOCKER_IMG_NAME}:latest
  3. docker build -t ${DOCKER_IMG_NAME}:latest ./
  4. docker-export:
  5. @-rm ./build/${DOCKER_IMG_NAME}.tar
  6. docker save ${DOCKER_IMG_NAME}:latest > ./build/${DOCKER_IMG_NAME}.tar
  7. docker-import:
  8. @-docker rmi ${DOCKER_IMG_NAME}:latest
  9. docker load < ./build/${DOCKER_IMG_NAME}.tar
  10. docker-push: docker-build
  11. docker tag ${DOCKER_IMG_NAME}:latest vladimirok5959/${DOCKER_IMG_NAME}:${VERSION}
  12. docker tag ${DOCKER_IMG_NAME}:latest vladimirok5959/${DOCKER_IMG_NAME}:latest
  13. docker login
  14. docker push vladimirok5959/${DOCKER_IMG_NAME}:${VERSION}
  15. docker push vladimirok5959/${DOCKER_IMG_NAME}:latest
  16. docker rmi vladimirok5959/${DOCKER_IMG_NAME}:${VERSION}
  17. docker rmi vladimirok5959/${DOCKER_IMG_NAME}:latest