Installation script?

40 views
Skip to first unread message

Carsten Agger

unread,
Sep 3, 2012, 8:39:01 AM9/3/12
to django...@googlegroups.com
I've created a Django web service consisting of two separate sites, by
default running on the same server, which implements a "document broker"
service capable of centralizing the generation of office documents.

This work was made on behalf of my employer Magenta ApS - the code is
available on the Subversion server for the Danish Agency for
Digitisation
<http://www.digst.dk/da/Servicemenu/English/About-the-Danish-Agency-for-Digitisation>,
if anyone is interested:

https://svn.softwareborsen.dk/DokumentBroker/

As it is, the installation procedure is:

* Get the code directory by unpacking the tarball or checking out the code

* Check the INSTALL file for dependencies, install all dependencies
(Debian/Ubuntu is strongly preferred)

* Run the "create_virtualenv" bash script to create the Python
virtualenv and install Django and a lot of Python packages

* Softlink or copy the Apache config files to
/etc/apache2/sites-available, manually update paths, etc.

* Create the necessary databases and update the settings.py files of the
two sites.

We'd like to be able to automate all of this, so that the user can
install these two services by running a single installation script.

I'm working on how to create source distribution tarballs with
setuptools and a setup.py file. However, setuptools and distutils will
only *install* my packages as Python packages and not set up the sites,
and that is *not* what we want. We'd like to create a complete
installation program so the user could just

* grab the tarball
* run "sudo install.py" or whatever
* enter some ports and paths configuration
* and now, up and running.

But how do I do that for a web service which is really a complete Django
site? Setup.py is obviously the Python Way of installing packages, but
is there a Django Way of creating and distributing installation programs
for web services which are entire site implementations?


best regards and thanks in advance,

Carsten Agger


--
Carsten Agger
Magenta ApS
�bogade 15
8200 �rhus N

Tlf +45 5060 1269
Mob +45 2086 5010
http://www.magenta-aps.dk
cars...@magenta-aps.dk

Andres Reyes Monge

unread,
Sep 3, 2012, 10:07:36 AM9/3/12
to django...@googlegroups.com
Take a look at this project https://github.com/dcramer/logan

�bogade 15
8200 �rhus N

Carsten Agger

unread,
Sep 4, 2012, 8:43:04 AM9/4/12
to django...@googlegroups.com, Andres Reyes Monge
Den 03-09-2012 16:07, Andres Reyes Monge skrev:
> Take a look at this project https://github.com/dcramer/logan
>
>
Thanks a lot, but I'm afraid that's not quite what I'm looking for.

It seems logan is a tool for running Django instances as standalone
program. What I'm looking for is a standardized installation procedure
which includes Apache and PostgreSQL setup so my Web service (which is
not really "standalone") is installed without the user having to
configure a lot.




--
Carsten Agger
Magenta ApS
Åbogade 15
8200 Århus N

creecode

unread,
Sep 4, 2012, 2:41:18 PM9/4/12
to django...@googlegroups.com
Hello Cartsten,

Have you checked out pip which has a requirements feature and fabric.  Those two would probably take you a fair ways or at least give you some ideas how you might approach the problem.


On Monday, September 3, 2012 5:39:41 AM UTC-7, Carsten Agger wrote:
 
We'd like to be able to automate all of this, so that the user can
install these two services by running a single installation script.

Toodle-looooooooooo............
creecode

Carsten Agger

unread,
Sep 5, 2012, 3:29:02 AM9/5/12
to django...@googlegroups.com
Den 04-09-2012 20:41, creecode skrev:

Have you checked out pip which has a requirements feature and fabric.  Those two would probably take you a fair ways or at least give you some ideas how you might approach the problem.


Thanks for the suggestions! In fact, I think buildout (zc.buildout) may be what I'm looking for.

Best regards,

Carsten

-- 
Carsten Agger
Magenta ApS
Åbogade 15
8200 Århus N

Tlf +45 5060 1269
Reply all
Reply to author
Forward
0 new messages