tyalie / pontoon

Mozilla's Localization Platform setup for docker

Home Page:https://pontoon.mozilla.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pontoon — Mozilla's Localization Platform

Pontoon is a translation management system used and developed by the Mozilla localization community. It specializes in open source localization that is driven by the community and uses version-control systems for storing translations.

Check out our documentation to learn how to:

Installation

Our installation documentation is available on Read the Docs:

Deploy

Contributing

Do you want to help us make Pontoon better? We are very glad!

Start by installing Pontoon locally using Docker. Once you have a working local environment, take a look at our mentored bugs. It is often better to start with those bugs, as they tend to be easier, and someone is committed to helping you get it done. To start working on a bug, verify that it isn't already assigned to someone else, and then ask on the bug for it to be assigned to you.

Before you start writing code, make sure to read our contribution docs. It contains information on how to style code, how to run tests, how to name your commits, etc. All the things you need to know if you want your work to be merged into Pontoon!

Pontoon developers hang around in the #pontoon channel on Mozilla's IRC server. Please join us there if you want to ask questions!

If you want to go further, you can:

Servers (used for Mozilla projects only)

License

This software is licensed under the New BSD License. For more information, read LICENSE.

Custom stuff

Running the repo

To get it running on docker follow these steps:

  1. setup your ssh - use ssh-keyscan -H HOST >> ssh/known_hosts for known hosts - add your keys - setup ssh_config
  2. create folder data (location of Postgres database)
  3. configure ports in docker-compose.yml - currently 35146 for django server and 35147 for webpack (default is 8000 / 3000) - I use it in combination with reverse proxy to resolve the ports
  4. configure your environments in ~/docker/config/webapp.env - important are SECRET_KEY and SITE_URL - see mozilla docs for reference (some keys don't work like sshkeys or sshconfig)
  5. set your python version in ./.env file - e.g. PYTHON_VERSION=3.7.5
  6. use docker-compose up to build and start server

Combine it with reverse proxy

Example nginx config

server {
  listen 80;
  listen [::]:80;

  server_name pontoon.webpage.de;

  location / {  # for django server
    proxy_pass http://localhost:35146;
  }

  location /sockjs-node {  # for websocket connection
    proxy_pass http://localhost:35147/sockjs-node;
    proxy_http_version 1.1;

    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
  }
}

About

Mozilla's Localization Platform setup for docker

https://pontoon.mozilla.org/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 44.5%Language:JavaScript 42.0%Language:CSS 7.2%Language:HTML 4.8%Language:FreeMarker 1.1%Language:Shell 0.1%Language:Makefile 0.1%Language:Dockerfile 0.1%