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
500 B

REMOTEHOST := root@las2.bounce
IMAGENAME := sneak/dockerized-workstation
5 years ago
YYYYMMDD := $(shell date +%Y%m%d)
5 years ago
default: remote-build
build:
5 years ago
docker build -t $(IMAGENAME):$(YYYYMMDD) .
5 years ago
upload:
rsync -avP --delete ./ $(REMOTEHOST):dockerized-workstation/
5 years ago
remote-build: upload
ssh -t $(REMOTEHOST) "cd dockerized-workstation && make build"
5 years ago
publish:
ssh -t $(REMOTEHOST) "cd dockerized-workstation && docker push $(IMAGENAME):$(YYYYMMDD)"
tryout:
ssh -t $(REMOTEHOST) "docker run -ti $(IMAGENAME)"