-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
82 lines (65 loc) · 2.34 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
FROM ubuntu:trusty
MAINTAINER [email protected]
RUN apt-get update
RUN apt-get -y install \
python-setuptools \
git \
zip \
curl \
wget
RUN apt-get -y install \
python-dev \
python-mysqldb \
libmysqlclient-dev \
libpq-dev \
libffi-dev \
libxml2-dev \
libxslt1-dev \
mysql-server \
rabbitmq-server
RUN easy_install pip && \
pip install --upgrade pip && \
pip install requests[security]
RUN mkdir -p /var/log/mysql && \
mysql_install_db --user=mysql --ldata=/var/lib/mysql/
ADD bootstrap/requirements.txt /root/
#RUN pip install python-novaclient==3.3.1 && \
# pip install python-swiftclient==3.0.0 && \
# pip install python-heatclient==1.1.0 && \
# pip install python-cinderclient==1.6.0 && \
# pip install python-keystoneclient==2.3.1 && \
# pip install python-neutronclient==3.1.0 && \
# pip install python-openstackclient==2.4.0
# install murano
RUN mkdir ~/murano && \
cd ~/murano && \
git config --global http.sslVerify false && \
git clone -b stable/liberty https://github.com/openstack/murano && \
cd murano && \
pip install -r ../../requirements.txt && \
python setup.py install && \
cd ~/murano/murano/meta/io.murano && \
zip -r ../../io.murano.zip * && \
mkdir -p /etc/murano && \
cp ~/murano/murano/etc/murano/* /etc/murano && \
rm -rf ~/murano/murano/.git
RUN cd ~/murano && \
git clone -b stable/liberty https://github.com/openstack/murano-dashboard && \
git clone -b stable/liberty https://github.com/openstack/horizon && \
cd horizon && \
pip install -r requirements.txt && \
pip install -e ../murano-dashboard && \
cp ../murano-dashboard/muranodashboard/local/_50_murano.py openstack_dashboard/local/enabled/ && \
cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py && \
rm -rf ~/murano/horizon/.git && \
rm -rf ~/murano/murano-dashboard/.git
ENV TERM=xterm
ADD bootstrap/local_settings.py /root/murano/horizon/openstack_dashboard/local/
ADD bootstrap/boot.sh /root/murano/
ADD bootstrap/murano-init.sh /root/murano/
ADD bootstrap/rabbitmq.config /etc/rabbitmq/
ADD catalog/nginx /root/murano/catalog/nginx/
ADD catalog/README.txt /root/murano/catalog/
EXPOSE 8082 8000 5672 15672 55672
WORKDIR "/root/murano"
ENTRYPOINT ["/root/murano/boot.sh"]