Docker tryon build with support for tryton prestashop
377
This Dockerfile contains the steps required to build a working image of Tryton server. The build is based on the official Debian base image on Dockerhub and packages from Debian Tryton Maintainers.
The image provided by this Dockerfile is a minimalistic Docker container for Tryton server
The Tryton Server image is built automatically from GitHub.
If you don't have yet a running docker installation, install first docker with
apt-get install docker.io
Add the user, that will use docker, to the docker group
useradd myuser docker
Note: You may have to relogin before the group settings will take effect.
Fetch the repository from docker
docker pull mbsolutions/tryton-server
Note: To fetch and work with specific versions add the relative tag to the command like
docker pull mbsolutions/tryton-server:3.6
Run a new container using the image
docker run -d -p 8000:8000 mbsolutions/tryton-server
-d option indicates that the container should be run in daemon
mode.-p option and it's value 8000:8000 instructs docker to bind TCP port 8000
of the container to port 8000 on the host. For more options on binding the interfaces
of containers to the host machine see the
ports documentation.Important: For the creation of new databases with the Tryton client you need to set
an admin password to be able to access the server. This has to be done in the server
configuration file (trytond.conf). For security reasons this image doesn't provide
a default server admin password. Please refer to chapter Extending this image how
to provide a trytond.conf.
This image image uses several environment variables which are not required, but may significantly aid in using the image.
TRYTOND_PASSWORDThis environment variable is recommended, if you want to be able to set automatically the admin password for new databases.
Use "-e TRYTOND_PASSWORD=password" in "docker run".
You can access the docker container and work from within it.
docker exec -it mbsolutions/tryton-server /bin/bash
On execution of the command a new prompt within the container should be available to you.
This docker image is a minimal base on which you should extend and write your own.
If you would like to do additional initialization before the startup of the server
in an image derived from this one, add an *.sh script under /docker-entrypoint-init.d.
The entrypoint script will will source any *.sh script found in that directory
to do further initialization before starting the service.
The following example steps would be required to say make your setup work with postgres and install the sale module.
# Tryton Server with Sale module and Postgres
FROM mbsolutions/tryton-server:3.6
MAINTAINER Mathias Behrle <[email protected]>
# Install additional distribution packages
RUN apt-get update && apt-get install -y \
tryton-modules-sale \
&& rm -rf /var/lib/apt/lists/*
# Get a [sample trytond.conf](https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=tryton/tryton-server.git;a=blob;f=etc/trytond.conf;hb=refs/heads/debian-stretch-3.6),
# copy it to the directory of your Dockerfile,
# adjust the settings to your needs (e.g. connection parameters and credentials to your PostgreSQL server)
# and copy it into the container with
COPY trytond.conf /etc/tryton/trytond.conf
This image was built by MBSolutions.
Parts of the setup were adopted from
For any questions about this image and your docker setup contact our support.
Content type
Image
Digest
sha256:69025e423…
Size
213.8 MB
Last updated
almost 11 years ago
docker pull adeb6600/tryton_prestashop