Skip to content

[WIP] First draft test docker #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:2.7-slim

RUN apt-get update && \
apt-get -y install expect-dev git wget npm && \
pip install lxml

ENV VERSION="9.0"
ENV TRAVIS_BUILD_DIR="/tmp"

# Setup maintainer-quality-tools, a set of development tools maintained by ODOO
RUN git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools && \
export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} && \
travis_install_nightly

WORKDIR $HOME/odoo-$VERSION

# Expose ODOO port
EXPOSE 8069

CMD $HOME/odoo-$VERSION/./openerp-server --addons-path=$HOME/odoo-$VERSION/addons --db_user=travis --db_password=admin --db_host=localhost