-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.22 KB
/
Makefile
File metadata and controls
38 lines (28 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: all run ssh build xeyes
GH_USER?=
ifeq ($(DOCKER_HOST),)
HOST?=localhost
else
HOST:=$(shell echo $(DOCKER_HOST) | sed -Ee 's@^[tu]cp://(.*)+[:][0-9]*@\1@g' )
endif
all: run ssh
insecure.key:
ssh-keygen -q -f insecure.key -N ""
run:
@test -n "$(GH_USER)" || { echo >&2 "Specify github username via GH_USER=foo"; exit 2; }
@test -n "$(HOST)" || { echo >&2 "Specify docker host via HOST=foo"; exit 2; }
docker rm -f wine || true
docker run -v /tmp/wine:/tmp/wine:ro -d -P -e GH_USER=$(GH_USER) --name wine --hostname winehq.local wine
@sleep 2
ssh:
@test -n "$(HOST)" || { echo >&2 "Specify docker host via HOST=foo"; exit 2; }
PORT=`docker inspect -f '{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}' wine` && \
ssh -Y -X -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $$PORT dev@$(HOST)
xeyes:
@test -n "$(HOST)" || { echo >&2 "Specify docker host via HOST=foo"; exit 2; }
@PORT=`docker inspect -f '{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}' wine` && \
ssh -Y -X -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $$PORT dev@$(HOST) xeyes
build:
docker build -t wine .
vs2013.7z:
cd ISOs && cmd.exe /c download_and_extract.bat `cygpath -wa ..\\$@`