blob: d58b00935532a9e45c337a41fd290af633c31c88 [file] [log] [blame]
Matteo Scandolo48d3d2d2017-08-08 13:05:27 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
A R Karthicke3bde962016-09-27 15:06:35 -070017# Dockerfile.base
18# This image isn't used, but installs the prereqs for the other XOS images
19
20FROM ubuntu:14.04.5
21MAINTAINER Zack Williams <zdw@cs.arizona.edu>
22
23# Install apt packages
24RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
25 apt-transport-https \
26 curl \
27 gcc \
28 geoip-database \
29 git \
30 graphviz \
31 graphviz-dev \
32 libcurl4-gnutls-dev \
33 libffi-dev \
34 libgeoip1 \
35 libpq-dev \
36 libxslt1-dev \
37 libxslt1.1 \
38 libyaml-dev \
39 m4 \
40 openssh-client \
41 pkg-config \
42 python-dev \
43 python-pip \
44 rsync \
45 software-properties-common \
46 supervisor \
47 unzip \
48 wget \
49 && rm -rf /var/lib/apt/lists/* \
50 && mkdir /var/xos \
51 && pip freeze > /var/xos/pip_freeze_apt_`date -u +%Y%m%dT%H%M%S`
52
53# Install python packages with pip
54COPY pip_requirements.txt /tmp/pip_requirements.txt
55
56RUN pip install --no-deps -r /tmp/pip_requirements.txt \
57 && pip freeze > /var/xos/pip_freeze_pip_up_`date -u +%Y%m%dT%H%M%S`
58
59# Copy over ansible hosts
60COPY ansible-hosts /etc/ansible/hosts
61
62# Install jQuery
63ENV JQUERY_DL_URL http://code.jquery.com/jquery-1.12.4.min.js
64ENV JQUERY_SHA256 668b046d12db350ccba6728890476b3efee53b2f42dbb84743e5e9f1ae0cc404
65
66RUN curl -fLsS $JQUERY_DL_URL -o jquery.min.js && \
67 echo "$JQUERY_SHA256 jquery.min.js" | sha256sum -c - && \
68 mv jquery.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/
69
70# Install jQueryUI
71ENV JQUERYUI_DL_URL https://jqueryui.com/resources/download/jquery-ui-1.11.4.zip
72ENV JQUERYUI_SHA256 503e4c0f109bf627aff87a424edc760608ec15e4a6e37f217a083ca682543e32
73
74RUN curl -fLsS $JQUERYUI_DL_URL -o jquery-ui.zip && \
75 echo "$JQUERYUI_SHA256 jquery-ui.zip" | sha256sum -c - && \
76 unzip jquery-ui.zip && \
77 mv jquery-ui-*/jquery-ui.min.js /usr/local/lib/python2.7/dist-packages/suit/static/suit/js/ && \
78 rm -rf jquery-ui.zip jquery-ui-*
79
80ENV JQUERYUI_THEMES_DL_URL http://jqueryui.com/resources/download/jquery-ui-themes-1.11.4.zip
81ENV JQUERYUI_THEMES_SHA256 df2b9cb084095ea24129a6a54587a1d9d7ae4bcd68bf5ea2957eb3d4d18fe884
82
83RUN curl -fLsS $JQUERYUI_THEMES_DL_URL -o jquery-ui-themes.zip && \
84 echo "$JQUERYUI_THEMES_SHA256 jquery-ui-themes.zip" | sha256sum -c - && \
85 unzip jquery-ui-themes.zip && \
86 mv jquery-ui-themes-*/themes/smoothness/jquery-ui.min.css /usr/local/lib/python2.7/dist-packages/suit/static/suit/css/ && \
87 rm -rf jquery-ui-themes.zip jquery-ui-themes-*
88
89# Install heat-translator for TOSCA support
90ENV HT_REPO_URL https://github.com/openstack/heat-translator.git
91ENV HT_REF a951b93c16e54046ed2d233d814860181c772e30
92
93RUN git clone $HT_REPO_URL /tmp/heat-translator && \
94 cd /tmp/heat-translator && \
95 git checkout $HT_REF && \
96 mkdir -p /opt/tosca && \
97 mv /tmp/heat-translator/translator /opt/tosca/translator && \
98 echo > /opt/tosca/translator/__init__.py && \
99 rm -rf /tmp/heat-translator
100