2015-05-12 17:07:03 +03:00
|
|
|
FROM mozillamarketplace/centos-mysql-mkt:0.2
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2015-05-12 17:07:03 +03:00
|
|
|
# Fix multilib issues when installing openssl-devel.
|
|
|
|
RUN yum install -y --enablerepo=centosplus libselinux-devel
|
|
|
|
|
|
|
|
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 \
|
|
|
|
m2crypto \
|
|
|
|
libxml2-devel \
|
|
|
|
libxslt-devel \
|
2015-03-17 17:00:05 +03:00
|
|
|
nodejs \
|
2015-07-23 15:42:16 +03:00
|
|
|
zlib-devel \
|
|
|
|
mysql-community-libs-compat-5.6.14-3.el6.x86_64
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2015-03-17 17:00:05 +03:00
|
|
|
ADD . /code
|
2014-10-01 15:44:44 +04:00
|
|
|
WORKDIR /code
|
|
|
|
|
2015-05-12 17:07:03 +03:00
|
|
|
RUN mkdir -p /pip/{cache,build}
|
|
|
|
|
|
|
|
ADD requirements /pip/requirements
|
|
|
|
|
|
|
|
# Remove some compiled deps so we just use the packaged versions already installed.
|
|
|
|
RUN sed -i 's/m2crypto.*$/# Removed in favour of packaged version/' /pip/requirements/compiled.txt
|
2014-10-01 15:44:44 +04:00
|
|
|
|
2015-05-12 17:07:03 +03:00
|
|
|
# This cd into /pip ensures egg-links for git installed deps are created in /pip/src
|
|
|
|
RUN cd /pip && pip install -b /pip/build --no-deps --download-cache /pip/cache -r /pip/requirements/dev.txt --find-links https://pyrepo.addons.mozilla.org/
|