-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] Packaging: nightly tests: src dockerfile
Creation of a Dockerfile for the src package for nightly tests. Remove unnecessary libraries installation from the Debian Dockerfile.
- Loading branch information
Showing
3 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Please note that this Dockerfile is used for testing nightly builds and should | ||
# not be used to deploy Odoo | ||
FROM debian:stable | ||
MAINTAINER Odoo S.A. <[email protected]> | ||
|
||
# Change policy-rc.d so that services start automatically once installed | ||
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y locales && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Reconfigure locales such that postgresql uses UTF-8 encoding | ||
RUN dpkg-reconfigure locales && \ | ||
locale-gen C.UTF-8 && \ | ||
/usr/sbin/update-locale LANG=C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
RUN apt-get update -qq && \ | ||
apt-get upgrade -qq -y && \ | ||
apt-get install \ | ||
postgresql \ | ||
postgresql-server-dev-all \ | ||
postgresql-client \ | ||
adduser \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
libldap2-dev \ | ||
libsasl2-dev \ | ||
libssl-dev \ | ||
libjpeg-dev \ | ||
python-dev \ | ||
python-pip \ | ||
build-essential \ | ||
python -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt /opt/release/requirements.txt | ||
|
||
RUN pip install -r /opt/release/requirements.txt | ||
|
||
RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters