Docker-reviewboard (make Reviewboard easy to install and migrate)

Source: Internet
Author: User
Tags docker ps docker run

Reviewboard is an open source, extensible, and friendly web-based code review tool developed with the Python framework Django.


Remember when I installed Reviewboard a long time Reviewboard official documentation is perfect, the website has detailed installation guide (each environment: Linux, Windows, MACOSX) then the installation environment is Linux, Most of the required software is theoretically available through yum/apt-get or Easy-install installation but initially installed, in the corporate intranet, unable to connect to the extranet, while the Yum source is imperfect and cannot be used to install Python-related packages with Easy-install , many of the software needs to be installed manually, the installation process is cumbersome, complex, the installation of dependency resolution, error positioning and resolution of a lot of time, especially the installation of reviewboard need to solve a lot of dependencies, installation of PYSVN need one by one to solve the error very much so that the first installation took about a week of time
And such installation, can not be migrated, to install in other environments will have to reinstall later, although many drills, and constantly accumulated installation experience, but the entire reviewboard environment step-by-step installation will take at least one day these two years Docker wind, and it makes Reviewboard installation, Migration, and so on, has become simpler.
Reviewboard official website docker-reviewboard page:
Https://www.reviewboard.org/store/products/docker-reviewboard/GitHub on the Docker-reviewboard source:
Image of Reviewboard on Https://github.com/ikatson/docker-reviewboard/DockerHub: https://registry.hub.docker.com/u/ ikatson/reviewboard/
See the relevant pages of GitHub or Dockerhub for detailed instructions on how to use them. Docker-reviewboard:dockerized of the Reviewboard. This container adheres to Docker best practices and does not include sshd, supervisor, Apache2, or other services except Reviewboard running on Uwsgi.
It requires PostgreSQL and memcached, you can use a Docker version, or you can use an external version (such as installed on a host or on a third-party machine).
persist data in Docker containers with all Docker dependent quick start, run Docker Reviewboard.
# install Postgresdocker run-d--name rb-postgres-e postgres_user=reviewboard postgres# Install memcacheddocker Run--na Me rb-memcached-d-P 11211 sylvainlasnier/memcached# Create a data container for Reviewboard with SSH credentials and Med Ia.docker run-v/.ssh-v/media--name rb-data busybox true# run reviewboarddocker run-it--link rb-postgres:pg--link R b-memcached:memcached--volumes-from rb-data-p 8000:8000 Ikatson/reviewboard

after the Docker command completes, the Reviewboard can be accessed through http://ip:8000/, the administrator account is admin:admin, after login can modify the administrator password, set up SMTP and so on.

To view a running container using Docker PS:

Through the Csphere management interface, you can also view the appropriate container information:


In addition, you can build your own image through the source (including dependencies), or you can choose to install PostgreSQL, memcached on the host.
For more details, see: https://registry.hub.docker.com/u/ikatson/reviewboard/
Reviewboard mount points and environment variables for containers:This container has two volum mount points:
    • /.ssh:reviewboard default path for storing SSH keys
    • /media:reviewboard the default path for storing uploaded media
This container receives the following environment variables:
    • The Pghost:postgre host, which defaults to the value of PG_PORT_5432_TCP_ADDR, is provided by the connected container pg.
    • The Pgport:postgre port, which defaults to the value of Pg_port_5432_tcp_port, is provided by the connected container PG, or is 5432, or is empty.
    • Pguser:postgre users, the default is Reviewboard.
    • Pgdb:postgre database, default is Reviewboard.
    • Pgpassword:postgre password, default is Reviewboard.
    • The memcached:mencached address, in the form of Host:port, is the default value of the Connected mencached container.
    • DOMAIN: localhost is the default.
    • Debug: If set, the Django service will run in debug mode.
In addition, Docker images or containers can be persisted (Docker export is used to persist the container, Docker save is used for persistent mirroring) to the file system, and you can use Docker import to import the persisted container, you can use Docker Load loads persistent mirrors, which makes it easy to migrate a mirror or container. This makes the Docker reviewboard migration easier.
In short, the Docker Reviewboard makes it easier to install and migrate Reviewboard.
Reference: https://registry.hub.docker.com/u/ikatson/reviewboard/http://dockerpool.com/static/books/docker_practice/ Image/save_load.html http://dockerpool.com/static/books/docker_practice/container/import_export.html

Docker-reviewboard (make Reviewboard install, migrate simpler)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.