[Pkg-debile-commits] [debile-master] 11/26: Instructions for installation without virtualenv

Sylvestre Ledru sylvestre at alioth.debian.org
Tue Aug 20 16:22:36 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch master
in repository debile-master.

commit e7e19f9062f292b838bc4540c227e6a5c9d55253
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Sat Aug 10 12:37:59 2013 +0200

    Instructions for installation without virtualenv
---
 PACKAGING-novirtualenv |   91 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)

diff --git a/PACKAGING-novirtualenv b/PACKAGING-novirtualenv
new file mode 100644
index 0000000..0a545dd
--- /dev/null
+++ b/PACKAGING-novirtualenv
@@ -0,0 +1,91 @@
+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
+like this...
+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. This user will run the various services.
+    adduser --disabled-password --disabled-login --gecos "Lucy manager,,," --home /srv/lucy lucy
+
+(root)
+* Fetch the repo of lucy
+    cd ~ && git clone  https://github.com/LeoCavaille/lucy.git
+# Should be "git clone https://github.com/paultag/lucy.git" at some point
+
+(root)
+* Install postgresql
+    apt-get install postgresql
+
+(root)
+* Create the database
+    su - postgres
+    createuser -W  --no-superuser   --no-createrole  --no-createdb lucy
+    Enter: adamngoodpassword
+    createdb -O lucy lucy
+
+(root)
+* Install some deps :
+    apt-get install python-sqlalchemy python-gnupg python-psycopg2 python-chardet python-debian python-clint
+
+(root)
+* Install lucy
+    python setup.py install
+
+(root)
+* Copy the configuration file at the right place
+    cp ~/lucy/skel/lucy.ini /etc/lucy.ini
+
+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 /srv/local-mirror/jobs
+    chown -R lucy. /srv/local-mirror
+
+(lucy)
+* Configure dput locally so that lucy can dput packages to the local mirror
+SAMPLE ~lucy/.dput.cf:
+###############################################################
+[local]
+fqdn = localhost
+method = local
+incoming = /srv/local-mirror/incoming
+###############################################################
+
+(root)
+* Setup an HTTP server for the local mirror
+    apt-get install nginx
+* Edit the conf
+SAMPLE /etc/nginx/sites-available/lucy:
+###############################################################
+server {
+    root /srv/local-mirror/;
+    server_name debian-archive;
+    location / {
+        # First attempt to serve request as file, then
+        # as directory, then fall back to displaying a 404.
+        try_files $uri $uri/;
+    }
+}
+###############################################################
+cd /etc/nginx/sites-enabled && ln -s ../sites-available/lucy
+
+* Start the daemon
+    service nginx start
+
+
+(lucy)
+* Run lucy
+    lucy-init
+    lucyd
+    ~/lucy/scripts/lucy-processd
+* Start your ethel builders

-- 
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