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.

21 lines
500B

  1. REMOTEHOST := root@las2.bounce
  2. IMAGENAME := sneak/dockerized-workstation
  3. YYYYMMDD := $(shell date +%Y%m%d)
  4. default: remote-build
  5. build:
  6. docker build -t $(IMAGENAME):$(YYYYMMDD) .
  7. upload:
  8. rsync -avP --delete ./ $(REMOTEHOST):dockerized-workstation/
  9. remote-build: upload
  10. ssh -t $(REMOTEHOST) "cd dockerized-workstation && make build"
  11. publish:
  12. ssh -t $(REMOTEHOST) "cd dockerized-workstation && docker push $(IMAGENAME):$(YYYYMMDD)"
  13. tryout:
  14. ssh -t $(REMOTEHOST) "docker run -ti $(IMAGENAME)"