travis: fix travis-ci docker image

A couple of fix for the docker image used by travis:

* locale package is no more installed by default
* liberasurecode-dev is required, now
* sphinx >= 1.6.0 have broken sphinx-versioning
* Don't use sphinx math module

Change-Id: Iba06d0c4667e2a11495fb25375de7152b2b02597
This commit is contained in:
Mehdi Abaakouk 2017-05-19 07:35:26 +02:00
parent c4183fe4fa
commit 86694d656c
3 changed files with 13 additions and 10 deletions

View File

@ -182,9 +182,7 @@ metrics the system will capture. Additionally, the number of sacks, should
be higher than the total number of active `gnocchi-metricd` workers.
In general, use the following equation to determine the appropriate `sacks`
value to set:
.. math::
value to set::
sacks value = number of **active** metrics / 300

View File

@ -58,7 +58,7 @@ file =
lz4>=0.9.0
tooz>=1.38
doc =
sphinx
sphinx<1.6.0
sphinx_rtd_theme
sphinxcontrib-httpdomain
PyYAML

View File

@ -2,12 +2,8 @@ FROM ubuntu:16.04
ENV GNOCCHI_SRC /home/tester/src
ENV DEBIAN_FRONTEND noninteractive
#NOTE(sileht): really no utf-8 in 2017 !?
ENV LANG en_US.UTF-8
RUN update-locale
RUN locale-gen $LANG
RUN apt-get update -y && apt-get install -qy \
locales \
git \
wget \
nodejs \
@ -17,7 +13,7 @@ RUN apt-get update -y && apt-get install -qy \
python3 \
python-dev \
python3-dev \
python-tox \
python-pip \
redis-server \
build-essential \
libffi-dev \
@ -26,9 +22,18 @@ RUN apt-get update -y && apt-get install -qy \
mysql-client \
mysql-server \
librados-dev \
liberasurecode-dev \
ceph \
&& apt-get clean -y
#NOTE(sileht): really no utf-8 in 2017 !?
ENV LANG en_US.UTF-8
RUN update-locale
RUN locale-gen $LANG
#NOTE(sileht): Upgrade python dev tools
RUN pip install -U pip tox virtualenv
RUN useradd -ms /bin/bash tester
RUN mkdir $GNOCCHI_SRC
RUN chown -R tester: $GNOCCHI_SRC