GithubHelp home page GithubHelp logo

isabella232 / docker-bpo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from python/docker-bpo

0.0 0.0 0.0 28 KB

Docker image for bugs.python.org

License: Apache License 2.0

Makefile 1.57% Python 65.39% Shell 12.09% Dockerfile 20.96%

docker-bpo's Introduction

About

This repository allows you to create a Docker image able to run a development instance of the Roundup tracker living at http://bugs.python.org

Usage

  1. Pull python/docker-bpo image from docker hub:
docker pull docker.io/python/docker-bpo
  1. Clone roundup and switch to the bugs.python.org branch:
hg clone https://bitbucket.org/python/roundup
cd roundup
hg update bugs.python.org
  1. Clone the python-dev instance alongside with roundup:
hg clone https://bitbucket.org/python/tracker-cpython python-dev
  1. Setup configuration:
cd python-dev
mkdir db
cp config.ini.template config.ini
cp detectors/config.ini.template detectors/config.ini
  1. To run the b.p.o container, cd in the dir where you cloned both roundup and python-dev and run:
docker run --rm -it -p 9999:9999 -v `pwd`:/opt/tracker docker.io/python/docker-bpo

This will launch the container in interactive mode, and mount the dir with the clones to the container's /opt/tracker.

  1. Every time the container is run, the tracker is initialized and 3 users are created. You can then run the tracker with:
rd-start
  1. Your local instance of bugs.python.org should be available at http://localhost:9999 On top of the two default users (admin and anonymous), 3 additional users are also available:
  • user: a regular user
  • developer: a developer (triager) that signed the cla
  • coordinator: a coordinator and committer that signed the cla

You can login as any of these 3 users using pass as password.

Notes

  • Every time you stop the container, all the users and issues you created will be deleted.
  • Every time you start the container, the tracker is initialized and the 3 users are created.
  • Once the container is running, you can start and stop the tracker with rd-start and ctrl+c.
  • When you register a new user, look in python-dev/debugmail.txt: you will find a confirmation URL. Copy it in your broswer and replace all the escaped =3D with =.
  • You can edit the code in roundup and python-dev from outside the container, since those dir are shared.
  • If you edit the code, you'll need to restart the tracker. Changes to the templates (the html dir) do not require a restart.
  • See https://wiki.python.org/moin/TrackerDevelopment for more info.

Troubleshooting

If you cannot access the b.p.o instance through your browser, chances are you may be running the docker on a VM, such a boot2docker. Please modify your NAT settings in that case.

If you have problems with empty /opt/tracker directory it means that SELinux is causing the problem, append :Z which will apply appropriate SELinux context:

docker run --rm -it -p 9999:9999 -v `pwd`:/opt/tracker:Z docker.io/python/docker-bpo

On some systems (Fedora, Red Hat, Centos) due to security constraints docker requires sudo to be run, make sure to update above commands appropriately in that case.

ACKS

Thanks to @introom for the initial version of this repo.

docker-bpo's People

Contributors

anishshah avatar dependabot[bot] avatar ezio-melotti avatar introom avatar rajpratik71 avatar soltysh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.