-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
95 lines (85 loc) · 2.56 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
92
93
94
95
FROM harnesscloud/baseimage-cloud:latest
MAINTAINER Mark Stillwell <[email protected]>
RUN echo "root:contrail" | chpasswd
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get -y install \
bzr \
curl \
g++ \
ganglia-monitor \
gfortran \
git \
gmetad \
htop \
infiniband-diags \
iperf \
iptables \
less \
libatlas-base-dev \
libatlas3gf-base \
libffi-dev \
libgomp1 \
libmlx4-1 \
libssl-dev \
libxslt1-dev \
logtail \
memcached \
nginx \
openjdk-6-jdk \
p7zip \
python \
python-dev \
python-cheetah \
python-httplib2 \
python-m2crypto \
python-netaddr \
python-pexpect \
python-pycurl \
python-scipy \
python-setuptools \
python-simplejson \
python-sklearn \
rrdtool \
subversion \
tcpdump \
tomcat6-user \
unzip \
wget \
yaws && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
# install xtreemfs client
RUN echo "deb http://download.opensuse.org/repositories/home:/xtreemfs/xUbuntu_14.04 ./" >> /etc/apt/sources.list
RUN wget -q http://download.opensuse.org/repositories/home:/xtreemfs/xUbuntu_14.04/Release.key -O - | sudo apt-key add -
RUN apt-get update && \
apt-get -y install xtreemfs-client && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
RUN easy_install numpy && \
easy_install -U numpy && \
easy_install pandas && \
easy_install patsy && \
easy_install statsmodels
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python -
RUN pip install git+https://github.com/harnesscloud/remyroy-pyopenssl-shutdown-fix#egg=pyopenssl
# create directory structure
RUN mkdir -p \
/etc/cpsagent \
/var/tmp/cpsagent \
/var/run/cpsagent \
/var/cache/cpsagent \
/etc/cpsmanager \
/var/tmp/cpsmanager \
/var/run/cpsmanager \
/var/cache/cpsmanager
ADD conpaas-worker.sh /etc/my_init.d/10-conpaas-worker
RUN chmod 0755 /etc/my_init.d/10-conpaas-worker
ADD hinst /usr/local/bin/hinst
RUN chmod 0755 /usr/local/bin/hinst
# add insecure private key, for any future development we should generate a key
# and push it through nova once irm-nova implements this functionality
RUN mkdir -p -m 0700 /root/.ssh
ADD harness_insecure-id_rsa /root/.ssh/id_rsa
RUN chmod 0600 /root/.ssh/id_rsa
ADD harness_insecure-id_rsa.pub /root/.ssh/authorized_keys
RUN chmod 0644 /root/.ssh/authorized_keys
EXPOSE 80 443