[REF] packaging: redhat: use fedora for testing
Creating a centos docker image fails on our nightly server with this issue: https://github.com/docker/hub-feedback/issues/461 To create a centos image, we used another repository to host the image and we make it build in docker hub, then we pulled it. It was getting really annoying.
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
# Please note that this Dockerfile is used for testing nightly builds and should
|
||||
# not be used to deploy Odoo
|
||||
FROM fedora:24
|
||||
MAINTAINER Odoo S.A. <info@odoo.com>
|
||||
|
||||
# Dependencies and postgres
|
||||
RUN dnf update -d 0 -e 0 -y && \
|
||||
dnf install -d 0 -e 0 \
|
||||
babel \
|
||||
libxslt-python \
|
||||
nodejs-less \
|
||||
pychart \
|
||||
pyparsing \
|
||||
python-babel \
|
||||
python-dateutil \
|
||||
python-decorator \
|
||||
python-docutils \
|
||||
python-feedparser \
|
||||
python-imaging \
|
||||
python-jinja2 \
|
||||
python-ldap \
|
||||
python-lxml \
|
||||
python-mako \
|
||||
python-mock \
|
||||
python-openid \
|
||||
python-passlib \
|
||||
python-psutil \
|
||||
python-psycopg2 \
|
||||
python-reportlab \
|
||||
python-requests \
|
||||
python-vobject \
|
||||
python-werkzeug \
|
||||
python-xlwt \
|
||||
python-yaml \
|
||||
pytz \
|
||||
postgresql \
|
||||
postgresql-server \
|
||||
postgresql-libs \
|
||||
postgresql-contrib \
|
||||
postgresql-devel -y && \
|
||||
dnf clean all
|
||||
|
||||
RUN easy_install pyPdf vatnumber pydot psycogreen suds ofxparse XlsxWriter
|
||||
|
||||
# Postgres configuration
|
||||
RUN mkdir -p /var/lib/postgres/data
|
||||
RUN chown -R postgres:postgres /var/lib/postgres/data
|
||||
RUN su postgres -c "initdb -D /var/lib/postgres/data -E UTF-8"
|
||||
RUN cp /usr/share/pgsql/postgresql.conf.sample /var/lib/postgres/data/postgresql.conf
|
||||
|
||||
RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc
|
||||
Reference in New Issue
Block a user