2015-05-12 17:07:03 +03:00
|
|
|
FROM mozillamarketplace/centos-mysql-mkt:0.2
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2015-09-17 19:09:57 +03:00
|
|
|
# Set the locale. This is mainly so that tests can write non-ascii files to
|
|
|
|
# disk.
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
2015-05-12 17:07:03 +03:00
|
|
|
# Fix multilib issues when installing openssl-devel.
|
2015-09-15 00:59:37 +03:00
|
|
|
RUN yum install -y --enablerepo=centosplus libselinux-devel && yum clean all
|
2015-05-12 17:07:03 +03:00
|
|
|
|
|
|
|
ADD docker-mysql.repo /etc/yum.repos.d/mysql.repo
|
|
|
|
|
|
|
|
RUN yum update -y \
|
|
|
|
&& yum install -y \
|
|
|
|
gcc-c++ \
|
2015-03-17 17:00:05 +03:00
|
|
|
curl \
|
2015-05-12 17:07:03 +03:00
|
|
|
libjpeg-devel \
|
|
|
|
cyrus-sasl-devel \
|
|
|
|
libxml2-devel \
|
|
|
|
libxslt-devel \
|
2015-03-17 17:00:05 +03:00
|
|
|
nodejs \
|
2015-07-23 15:42:16 +03:00
|
|
|
zlib-devel \
|
2015-08-07 06:20:42 +03:00
|
|
|
mysql-community-libs-compat-5.6.14-3.el6.x86_64 \
|
|
|
|
&& yum clean all
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2015-08-07 06:20:42 +03:00
|
|
|
# The version in the above image is ancient, and does not support the
|
|
|
|
# --no-binary flag used in our requirements files.
|
2015-09-15 00:59:37 +03:00
|
|
|
# We also need to install wheels.
|
|
|
|
RUN pip install -U pip wheel
|
2015-05-12 17:07:03 +03:00
|
|
|
|
2015-08-07 06:20:42 +03:00
|
|
|
COPY requirements /pip/requirements/
|
|
|
|
RUN cd /pip && \
|
|
|
|
pip install --build ./build --cache-dir ./cache \
|
2015-09-15 00:59:37 +03:00
|
|
|
--find-links https://pyrepo.addons.mozilla.org/ \
|
|
|
|
--no-index --no-deps \
|
|
|
|
-r requirements/docker.txt && \
|
2015-08-07 06:20:42 +03:00
|
|
|
rm -r build cache
|
2015-05-12 17:07:03 +03:00
|
|
|
|
2015-08-07 06:20:42 +03:00
|
|
|
RUN mkdir /code
|
|
|
|
WORKDIR /code
|