-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 819 Bytes
/
Makefile
File metadata and controls
28 lines (24 loc) · 819 Bytes
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
base_port=25000
all: generate-key opencv main
generate-key:
mkdir -p ./ssh-key
ssh-keygen -C "docker-env" -f ./ssh-key/docker-env -q -N ""
opencv:
docker build -f Dockerfile.opencv -t res-env/opencv .
main:
docker build -f Dockerfile -t res-env/sample .
dry-run:
docker run -it --rm \
-p $(base_port):22 \
-p $(shell expr $(base_port) + 1 ):8800 \
-p $(shell expr $(base_port) + 2 ):8801 \
-p $(shell expr $(base_port) + 3 ):6003 \
-p $(shell expr $(base_port) + 4 ):6004 \
-p $(shell expr $(base_port) + 5 ):6005 \
-p $(shell expr $(base_port) + 6 ):6006 \
-p $(shell expr $(base_port) + 7 ):6007 \
-p $(shell expr $(base_port) + 8 ):6008 \
-p $(shell expr $(base_port) + 9 ):6009 \
-p $(shell expr $(base_port) + 10 ):6010 \
-v $(shell pwd)/workspace:/home/omnious/workspace \
res-env/sample