dockerized-workstation/Makefile

17 lines
354 B
Makefile
Raw Normal View History

REMOTEHOST := root@las2.bounce
2019-01-11 07:04:02 +00:00
IMAGENAME := sneak/dockerized-workstation
2019-01-11 06:22:53 +00:00
default: remote-build
build:
2019-01-11 07:04:02 +00:00
docker build -t $(IMAGENAME) .
2019-01-11 06:22:53 +00:00
upload:
rsync -avP --delete ./ $(REMOTEHOST):dockerized-workstation/
2019-01-11 06:22:53 +00:00
remote-build: upload
ssh -t $(REMOTEHOST) "cd dockerized-workstation && make build"
2019-01-11 07:04:02 +00:00
tryout:
ssh -t $(REMOTEHOST) "docker run -ti $(IMAGENAME)"