blob: a5119863a1ed87af15d5df70b4a937868950ae7e [file] [log] [blame]
A R Karthicke3bde962016-09-27 15:06:35 -07001# Dockerfile.base
2# This image isn't used, but installs the prereqs for the other XOS images
3
4FROM ubuntu:14.04.5
5MAINTAINER Zack Williams <zdw@cs.arizona.edu>
6
7# Install apt packages
8RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
9 apt-transport-https \
10 curl \
11 gcc \
12 geoip-database \
13 git \
14 graphviz \
15 graphviz-dev \
16 libcurl4-gnutls-dev \
17 libffi-dev \
18 libgeoip1 \
19 libpq-dev \
20 libxslt1-dev \
21 libxslt1.1 \
22 libyaml-dev \
23 m4 \
24 openssh-client \
25 pkg-config \
26 python-dev \
27 python-pip \
28 rsync \
29 software-properties-common \
30 supervisor \
31 unzip \
32 wget \
33 && rm -rf /var/lib/apt/lists/* \
34 && mkdir /var/xos \
35 && pip freeze > /var/xos/pip_freeze_apt_`date -u +%Y%m%dT%H%M%S`
36
37# Install python packages with pip
38COPY pip_requirements.txt /tmp/pip_requirements.txt
39
40RUN pip install --no-deps -r /tmp/pip_requirements.txt \
41 && pip freeze > /var/xos/pip_freeze_pip_up_`date -u +%Y%m%dT%H%M%S`
42
43# Copy over ansible hosts
44COPY ansible-hosts /etc/ansible/hosts
45
46# Install jQuery
47ENV JQUERY_DL_URL http://code.jquery.com/jquery-1.12.4.min.js
48ENV JQUERY_SHA256 668b046d12db350ccba6728890476b3efee53b2f42dbb84743e5e9f1ae0cc404
49
50RUN curl -fLsS $JQUERY_DL_URL -o jquery.min.js && \
51 echo "$JQUERY_SHA256 jquery.min.js" | sha256sum -c - && \
52 mv jquery.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/
53
54# Install jQueryUI
55ENV JQUERYUI_DL_URL https://jqueryui.com/resources/download/jquery-ui-1.11.4.zip
56ENV JQUERYUI_SHA256 503e4c0f109bf627aff87a424edc760608ec15e4a6e37f217a083ca682543e32
57
58RUN curl -fLsS $JQUERYUI_DL_URL -o jquery-ui.zip && \
59 echo "$JQUERYUI_SHA256 jquery-ui.zip" | sha256sum -c - && \
60 unzip jquery-ui.zip && \
61 mv jquery-ui-*/jquery-ui.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/ && \
62 rm -rf jquery-ui.zip jquery-ui-*
63
64ENV JQUERYUI_THEMES_DL_URL http://jqueryui.com/resources/download/jquery-ui-themes-1.11.4.zip
65ENV JQUERYUI_THEMES_SHA256 df2b9cb084095ea24129a6a54587a1d9d7ae4bcd68bf5ea2957eb3d4d18fe884
66
67RUN curl -fLsS $JQUERYUI_THEMES_DL_URL -o jquery-ui-themes.zip && \
68 echo "$JQUERYUI_THEMES_SHA256 jquery-ui-themes.zip" | sha256sum -c - && \
69 unzip jquery-ui-themes.zip && \
70 mv jquery-ui-themes-*/themes/smoothness/jquery-ui.min.css /usr/local/lib/python2.7/dist-packages/suit/static/suit/css/ && \
71 rm -rf jquery-ui-themes.zip jquery-ui-themes-*
72
73# Install heat-translator for TOSCA support
74ENV HT_REPO_URL https://github.com/openstack/heat-translator.git
75ENV HT_REF a951b93c16e54046ed2d233d814860181c772e30
76
77RUN git clone $HT_REPO_URL /tmp/heat-translator && \
78 cd /tmp/heat-translator && \
79 git checkout $HT_REF && \
80 mkdir -p /opt/tosca && \
81 mv /tmp/heat-translator/translator /opt/tosca/translator && \
82 echo > /opt/tosca/translator/__init__.py && \
83 rm -rf /tmp/heat-translator
84