-
Notifications
You must be signed in to change notification settings - Fork 4
/
dockerfile.xcat.ppc64le.run
40 lines (30 loc) · 1.12 KB
/
dockerfile.xcat.ppc64le.run
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
FROM ppc64le/ubuntu:trusty
MAINTAINER yangsbj@cn.ibm.com
RUN apt-get update && apt-get install -y \
wget \
openssh-server
RUN wget -O - \
"http://sourceforge.net/projects/xcat/files/ubuntu/apt.key/download" \
| apt-key add - ; \
echo \
"deb http://xcat.org/files/xcat/repos/apt/2.11/xcat-core trusty main" \
> /etc/apt/sources.list.d/xcat-core.list ; \
echo \
"deb http://xcat.org/files/xcat/repos/apt/xcat-dep trusty main" \
> /etc/apt/sources.list.d/xcat-dep.list
RUN apt-get update && apt-get -y install \
xcat \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*; \
cp -rf /install/postscripts /opt/xcat/ \
&& rm -rf /install/postscripts ; \
cp -rf /install/prescripts /opt/xcat/ \
&& rm -rf /install/prescripts; \
service xcatd stop
VOLUME ["/install"]
COPY startservice.sh /bin/startservice.sh
COPY patch.bin.stop /sbin/stop
COPY motd /etc/motd
RUN chmod +x /bin/startservice.sh; \
chmod +x /sbin/stop
ENTRYPOINT ["/bin/startservice.sh"]