LogdeIt, a Pastebin service
94fe4ad8e3
The python-builder base image was updated to no longer install recommends. This is inline with the other Infra images and keeps image sizes smaller. gcc recommended libc6-dev - but it turns out we need that for stdio.h for one of our depends. Add it to fix our image builds. Pygments released a python3-only release. Pin back to before that for python2. Change-Id: I18a808748979b7167361d2e5ebce04bc8eaf1347 |
||
---|---|---|
clientlib | ||
editors/vim | ||
lodgeit | ||
scripts | ||
tests | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.zuul.yaml | ||
babel.ini | ||
bindep.txt | ||
Dockerfile | ||
lodgeit.wsgi | ||
Makefile | ||
manage.py | ||
README | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
TODO | ||
tox.ini |
============== LodgeIt Readme ============== Lodgeit implements a pastebin and some scripts to paste the service. Installation ~~~~~~~~~~~~ LodgeIt requires at least Python 2.5 to work correctly. Next to this LodgeIt has quite a few of dependencies as well as a nice bootstrap process. This is documented on the following slides. Dependencies and virtual environment ==================================== To get LodgeIt work properly we need those dependencies: Python (at least 2.5), python-setuptools and git. For Ubuntu (or any Debian based distribution) use ``aptitude`` to install:: aptitude install python-dev python-setuptools python-virtualenv git Now we can install LodgeIt. But first we need to clone LodgeIt from the git repository. To do that you create a new folder ``lodgeit-dev`` in your projects directory and change into it. There we initialize the virtual environment and clone LodgeIt:: git clone https://opendev.org/opendev/lodgeit Right before we can initialize the virtual environment we need to install some development packages to compile the python imaging library. For Ubuntu again ``aptitude`` (as root):: sudo aptitude install build-essential apt-get build-dep python-imaging Now it's possible to install the virtual environment. This is done with a simple Python command:: # assumed that you are located in lodgeit-dev/lodgeit python scripts/make-bootstrap.py > ../bootstrap.py cd .. # make sure that the virtualenv is not activated. If yes, execute `deactivate` python bootstrap.py . You are ready to run now. Database and other things ========================= We are now ready to enter the virtual environment (assumed you are located in ``lodgeit-dev/lodgeit``):: . ../bin/activate LodgeIt initializes it's database per default on /tmp/lodgeit.db, you can change that path in the manage.py by modifying ``dburi``. Now start the development server:: python manage.py runserver Enjoy!