Last active
August 29, 2015 14:04
-
-
Save sharoonthomas/a75cf7b02173fa3556cf to your computer and use it in GitHub Desktop.
Example Dockerfile to setup tryton 3.2 with sale module and postgres
This file contains hidden or 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
# Trytond 3.2 with Sale module and Postgres | |
# | |
# VERSION 3.2.0.1 | |
FROM openlabs/tryton:3.2 | |
MAINTAINER Sharoon Thomas <[email protected]> | |
# Setup psycopg2 since you want to connect to postgres | |
# database | |
RUN apt-get -y -q install python-dev libpq-dev | |
RUN pip install psycopg2 | |
# Setup the sale module since it is a required for this | |
# custom setup | |
RUN pip install 'trytond_sale>=3.2,<3.3' | |
# Copy new trytond.conf from local folder to /etc/trytond.conf | |
# The new trytond also has credentials to connect to the postgres | |
# server which is accessible elsewhere | |
ADD trytond.conf /etc/trytond.conf |
This file contains hidden or 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
[options] | |
# Activate the json-rpc protocol | |
jsonrpc = *:8000 | |
# Configure the database type | |
db_type = postgresql | |
# Configure the database connection | |
## Note: Only databases owned by db_user will be displayed in the connection dialog | |
## of the Tryton client. db_user must have create permission for new databases | |
## to be able to use automatic database creation with the Tryton client. | |
db_host = postgres_host.mydomain.com | |
db_port = 5432 | |
db_user = tryton | |
db_password = tryton | |
# Configure the Tryton server password to be something strong | |
admin_passwd = admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment