Skip to content

Instantly share code, notes, and snippets.

@sharoonthomas
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharoonthomas/a75cf7b02173fa3556cf to your computer and use it in GitHub Desktop.
Save sharoonthomas/a75cf7b02173fa3556cf to your computer and use it in GitHub Desktop.
Example Dockerfile to setup tryton 3.2 with sale module and postgres
# Trytond 3.2 with Sale module and Postgres
#
# VERSION 3.2.0.1
FROM openlabs/tryton:3.2
MAINTAINER Sharoon Thomas <sharoon.thomas@openlabs.co.in>
# 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
[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