-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerMake.yaml
147 lines (127 loc) · 4.51 KB
/
DockerMake.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
base:
FROM: ubuntu:14.04
proxy:
build: |
# ENV http_proxy=http://<proxy>:<port>
# ENV https_proxy=https://<proxy>:<port>
# ENV ftp_proxy=http://<proxy>:<port>
# ENV no_proxy=
# ENV HTTP_PROXY=
# ENV HTTPS_PROXY=
# ENV FTP_PROXY=
# ENV NO_PROXY=
cache:
requires:
- base
- proxy
build: |
# do not update the cache locations
ENV PIP_DOWNLOAD_CACHE=/opt/stack/pip-cache
RUN mkdir -p -m 777 /opt/stack/pip-cache
RUN mkdir -p -m 777 /opt/stack/apt-cache ; \
echo 'dir::cache::archives "/opt/stack/apt-cache";' > /etc/apt/apt.conf
# adjust pip and apt chace to local setting
# ENV PIP_INDEX_URL=http://<pip mirror>/simple/
# ENV PIP_TRUSTED_HOST=<hostname>
# RUN echo 'Acquire::HTTP::Proxy "http://<aptcache>:3142";' > /etc/apt/apt.conf ; \
# echo 'Acquire::HTTPS::Proxy "false";' >> /etc/apt/apt.conf
RUN apt-get update
RUN apt-get update ; apt-get upgrade -y ; apt-get install -y software-properties-common \
python-software-properties ; apt-get autoclean
RUN add-apt-repository -y cloud-archive:liberty ; apt-get update; apt-get upgrade; apt-get install -f -y
tools:
requires:
- cache
build: |
RUN apt-get install -y --no-install-recommends nano wget git socat tshark git mc netcat iperf \
iproute net-tools build-essential python python3 python-dev python3-dev htop \
openssh-client && apt-get autoclean
freerds:
requires:
- tools
build_directory: freerds
build: |
RUN apt-get install -qy --force-yes --no-install-recommends \
cmake xorg; apt-get autoclean
COPY prep.sh /tmp/prep.sh
RUN chmod +x /tmp/prep.sh; sleep 1;/tmp/prep.sh
COPY build.sh /tmp/build.sh
RUN chmod +x /tmp/build.sh ; sleep 1; /tmp/build.sh
COPY freerds.conf /etc/supervisor/conf.d/freerds.conf
user:
requires:
- cache
build: |
RUN useradd --shell /bin/bash --create-home tester ; echo tester:tester | chpasswd
RUN echo "tester ALL=(ALL:ALL) ALL" | tee -a /etc/sudoers
init:
requires:
- cache
build_directory: init
build: |
RUN apt-get install -y --no-install-recommends supervisor; apt-get autoclean
COPY init.conf /etc/supervisor/conf.d/init.conf
CMD ["supervisord","-n"]
EXPOSE 3389
lxde:
requires:
- cache
build_directory: lxde
build: |
RUN apt-get install -y --no-install-recommends \
lxde-core bash lxterminal ; apt-get autoclean
kde:
requires:
- cache
build_directory: kde
build: |
RUN apt-get install -y --no-install-recommends kde-plasma-desktop && apt-get autoclean
devtools:
requires:
- tools
- user
build: |
RUN apt-get install -y --no-install-recommends apt-transport-https ca-certificates firefox; apt-get autoclean
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D ; \
add-apt-repository -y "deb https://apt.dockerproject.org/repo ubuntu-trusty main"; \
apt-get update ; apt-get -y install docker-engine; apt-get autoclean ; usermod -aG docker tester
RUN apt-get install -y --no-install-recommends default-jdk && apt-get autoclean
RUN wget https://d1opms6zj7jotq.cloudfront.net/idea/ideaIC-15.0.3.tar.gz ; \
tar -xvf ideaIC-15.0.3.tar.gz ; rm ideaIC-15.0.3.tar.gz ; mv idea-IC-143.1821.5 /opt/idea; \
chmod +x /opt/idea/bin/idea.sh; \
echo -e "#!/bin/bash \n /opt/idea/bin/idea.sh > /dev/null &" > /usr/bin/idea; \
chmod +x /usr/bin/idea
lxde-freerds:
requires:
- tools
- init
- freerds
- user
- devtools
- lxde
kde-freerds:
requires:
- tools
- init
- freerds
- user
- devtools
- kde
devstack-data:
FROM: alpine:3.3
requires:
- proxy
build_directory: devstack
build: |
RUN apk add --no-cache git
RUN mkdir -p -m 777 /opt/stack/pip-cache ; git clone http://github.com/openstack-dev/devstack /opt/stack/devstack
COPY local.conf /opt/stack/devstack/local.conf
VOLUME ["/opt/stack"]
CMD ["/bin/true"]
devstack:
requires:
- tools
- init
build_directory: devstack
build: |
RUN apt-get install --no-install-recommends -y libvirt-bin linux-headers-generic fdutils libxtst6