Makefile 672 B

1234567891011121314151617181920212223
  1. NAME=layout
  2. VERSION=latest
  3. BUILD_TIME := $(shell date "+%F %T")
  4. COMMIT_SHA1 := $(shell git rev-parse HEAD)
  5. AUTHOR := $(shell git show -s --format='%an')
  6. .PHONY: all
  7. all: test
  8. rsync:
  9. @rsync -azP --exclude ".*/" --exclude "tmp/" `pwd` sxkj@192.168.199.107:/home/sxkj/zhangli
  10. test: rsync
  11. @ssh sxkj@192.168.199.107 -t 'cd /home/sxkj/zhangli/yl-ocr-layout && make image'
  12. image:
  13. @docker build -t SXKJ:32775/$(NAME):gpu --build-arg VERSION=gpu .
  14. @docker push SXKJ:32775/$(NAME):gpu
  15. cpu:
  16. @docker build -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):cpu --build-arg VERSION=cpu .
  17. @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):cpu