-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
91 lines (63 loc) · 2.42 KB
/
Dockerfile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
##### ################################################################
#####
##### Build
##### -----
##### docker build -t gcp.sbcl.woo -f Dockerfile .
#####
##### Run
##### ---
##### docker run -it gcp.sbcl.woo
##### docker run -d gcp.sbcl.woo
##### docker exec -it {id} /bin/bash
#####
##### ################################################################
FROM ubuntu:18.04
MAINTAINER Renshi <yanqirenshi@gmail.com>
##### ################################################################
##### Install of zypper
##### ################################################################
USER root
RUN apt -y update
RUN apt -y upgrade
RUN apt -y install sudo curl wget git libev-dev
##### ################################################################
##### roswell
##### ################################################################
USER root
WORKDIR /tmp
RUN apt -y install git build-essential automake libcurl4-openssl-dev
RUN curl -L https://github.com/roswell/roswell/releases/download/v19.08.10.101/roswell_19.08.10.101-1_amd64.deb --output roswell.deb
RUN dpkg -i roswell.deb
##### ################################################################
##### Group / User
##### ################################################################
USER root
RUN groupadd appl-users
RUN useradd -d /home/appl-user -m -g appl-users appl-user
##### ################################################################
##### roswell
##### ################################################################
USER appl-user
WORKDIR /home/appl-user
RUN ros setup
RUN ros install woo
##### ################################################################
##### setting gcp.sbcl.woo
##### ################################################################
USER appl-user
WORKDIR /home/appl-user
RUN mkdir -p /home/appl-user/prj/gcp.sbcl.woo
COPY ./gcp-sbcl-woo.ros /home/appl-user/prj/gcp.sbcl.woo/gcp-sbcl-woo.ros
##### ################################################################
##### build
##### ################################################################
USER appl-user
WORKDIR /home/appl-user/prj/gcp.sbcl.woo
RUN ros build gcp-sbcl-woo.ros
##### ################################################################
##### gcp.sbcl.woo
##### ################################################################
USER appl-user
WORKDIR /home/appl-user/tmp
EXPOSE 8080
CMD ["/home/appl-user/prj/gcp.sbcl.woo/gcp-sbcl-woo"]