[Pkg-debile-commits] [debile-master] 121/126: Update of the documentation to match the current status
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch scan-build-html
in repository debile-master.
commit 8a1c5d6caf20bad472b78c8264840fa4332c3e91
Author: Sylvestre Ledru <sylvestre.ledru at scilab-enterprises.com>
Date: Thu Aug 8 10:57:07 2013 +0200
Update of the documentation to match the current status
---
PACKAGING.md | 96 +++++++++++++++---------------------------------------
requirements.txt | 3 +-
2 files changed, 29 insertions(+), 70 deletions(-)
diff --git a/PACKAGING.md b/PACKAGING.md
index e6faf02..d007c7e 100644
--- a/PACKAGING.md
+++ b/PACKAGING.md
@@ -1,31 +1,31 @@
What is required to install lucy.
So that may become some hints to create the package.
-This not an "INSTALL" file as I hope we'll never have to install the system
+This not an "INSTALL" file as I hope we'll never have to install the system
like this...
-And I use virtualenvwrapper here for my sanity, preferably replaced in
+And I use virtualenvwrapper here for my sanity, preferably replaced in
production by installing the debian packages instead of using pip
System : fresh wheezy, up to date on 04 Jul 2013
(root)
-* Create a dedicated user in the machine
+* Create a dedicated user in the machine. This user will run the various services.
adduser --disabled-password --disabled-login --gecos "Lucy manager,,," --home /srv/lucy lucy
(lucy)
* Fetch the repo of lucy
- cd ~ && git clone https://github.com/paultag/lucy.git
+ cd ~ && git clone https://github.com/LeoCavaille/lucy.git -b scan-build-html
+# Should be "git clone https://github.com/paultag/lucy.git" at some point
(root)
-* Install mongoDB
- apt-get install mongodb
+* Install postgresql
+ apt-get install postgresql postgresql-server-dev-9.1
(root)
-* Enable the interface to query mongo
-# TODO : put some auth before mean hackers dominate the DB
-SAMPLE conf /etc/mongodb.conf
-###############################################################
-bind_ip = 0.0.0.0
-###############################################################
+* Create the database
+ su - postgres
+ createuser -W --no-superuser --no-createrole --no-createdb lucy
+ Enter: adamngoodpassword
+ createdb -O lucy lucy
(root)
* Install some deps :
@@ -52,66 +52,21 @@ bind_ip = 0.0.0.0
* Install lucy
python setup.py develop
-(lucy) virtualenv=lucy
-* Install the config, by creating a file like the sample and run
- lucy-init config.json
+(root)
+* Copy the configuration file at the right place
+ cp ~lucy/lucy/skel/lucy.ini /etc/lucy.ini
-SAMPLE conf JSON file :
-#FIXME : there is nothing behind the "keyring" stuff :)
-###############################################################
-{
- "configs": [
- {
- "_id": "default",
- "arches": [
- "amd64"
- ],
- "incoming": "/srv/local-mirror/incoming",
- "job_classes": {
- "binary": [
- "piuparts",
- "adequate",
- "lintian",
- "lintian4py"
- ],
- "source": [
- "lintian",
- "lintian4py"
- ]
- },
- "keyring": "/var/lib/lucy/keyring",
- "pool": "/srv/local-mirror/pool",
- "public": "http://debian-archive.via.ecp.fr/pool",
- "suites": [
- "unstable",
- "testing"
- ]
- }
- ],
- "machines": [
- {
- "_id": "debian-builder1",
- "auth": "password",
- "gpg": "D0FEF8101640900183B8C37A42FE51628224AAA3",
- "owner": "leo"
- }
- ],
- "users": [
- {
- "_id": "leo",
- "email": "leo+debian at cavaille.net",
- "gpg": "B11A9FEC01B2B1F6C1C31DD4896AE222CC16515C",
- "name": "Léo Cavaillé",
- "auth": "secret"
- }
- ]
-}
-###############################################################
+Update:
+- suites
+- source
+- binary
+- arches
+- public - the URL of the pool (see further for the web server configuration)
(root)
* Create the paths and give rigts to lucy
- mkdir -p /srv/local-mirror/pool /srv/local-mirror/incoming
- chown -R lucy:lucy /srv/local-mirror
+ mkdir -p /srv/local-mirror/pool /srv/local-mirror/incoming /srv/local-mirror/jobs
+ chown -R lucy. /srv/local-mirror
(lucy)
* Configure dput locally so that lucy can dput packages to the local mirror
@@ -127,7 +82,7 @@ incoming = /srv/local-mirror/incoming
* Setup an HTTP server for the local mirror
apt-get install nginx
* Edit the conf
-SAMPLE /etc/nginx/sites-available/default:
+SAMPLE /etc/nginx/sites-available/lucy:
###############################################################
server {
root /srv/local-mirror/;
@@ -139,12 +94,15 @@ server {
}
}
###############################################################
+cd /etc/nginx/sites-enabled && ln -s ../sites-available/lucy
+
* Start the daemon
service nginx start
(lucy) virtualenv=lucy
* Run lucy
+ workon lucy
lucyd
~/lucy/scripts/lucy-processd
* Start your ethel builders
diff --git a/requirements.txt b/requirements.txt
index c319b00..cdc338a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,5 @@
-pymongo
+sqlalchemy
+psycopg2
nose
clint
schedule
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list