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.
20 lines
500 B
20 lines
500 B
REMOTEHOST := root@las2.bounce
|
|
IMAGENAME := sneak/dockerized-workstation
|
|
YYYYMMDD := $(shell date +%Y%m%d)
|
|
|
|
default: remote-build
|
|
|
|
build:
|
|
docker build -t $(IMAGENAME):$(YYYYMMDD) .
|
|
|
|
upload:
|
|
rsync -avP --delete ./ $(REMOTEHOST):dockerized-workstation/
|
|
|
|
remote-build: upload
|
|
ssh -t $(REMOTEHOST) "cd dockerized-workstation && make build"
|
|
|
|
publish:
|
|
ssh -t $(REMOTEHOST) "cd dockerized-workstation && docker push $(IMAGENAME):$(YYYYMMDD)"
|
|
|
|
tryout:
|
|
ssh -t $(REMOTEHOST) "docker run -ti $(IMAGENAME)"
|
|
|