[ckan-dev] Contribution: Automated installation script
Richard Gomes
rgomes.info at gmail.com
Tue Sep 17 16:50:46 UTC 2013
Hello,
I've create an installation script which automagically performs all
installations steps as explained in the documentation.
This includes installation of a Java, Postgres and Solr.
The script is here: http://paste.ubuntu.com/6120079/
Requirements:
* Debian 7.1
* a pre-built virtualenv
You will need to adjust these parameters below according to your needs:
# versions of tools
JAVA_MINOR=25
JETTY_VERSION=9.0.5.v20130815
SOLR_VERSION=4.4.0
*CKAN_VERSION=2.1.1
USE_DVCS=1
*
# preferred virtual environment
*VENV=default*
# generic locations
*export APPS=/opt/local*
*export DOWNLOAD=rgomes at terra:Downloads*
# CKAN settings
export CKAN_USERNAME=ckan_default
export CKAN_DATABASE=ckan_default
export CKAN_SITE_NAME=guineapig
export CKAN_SITE_URL=http://ckan.localdomain:5000/
*export CKAN_OWNER=rgomes:rgomes*
*Note:* I've highlighted above the most important variables, which you
will centainly have to adjust to your needs.
*Note:* Some archives are copied from location *${DOWNLOAD}*, due to
copyright reasons (i.e: difficult to automate how they are downloaded).
You can adjust which version of CKAN you need.
You can also tell if CKAN is downloaded as and archive or obtained from Github.
Function run() coordinates all instalation steps.
If you uncomment paster_serve, it will automagically start SOLR and CKAN
for you.
function run() {
check_requirements
set_virtualenv
install_packages # 1.
install_ckan # 2.
setup_database # 3.
setup_ckan # 4.
setup_solr # 5.
create_tables # 6.
setup_datastore # 7.
symlink_who_ini # 8.
#paster_serve
#install_webservers
#setup_webservers
#sudo service apache2 restart
#sudo service nginx restart
}
No warranties... but I hope it helps
Richard Gomes
http://rgomes.info
http://www.linkedin.com/in/rgomes
mobile: +44(77)9955-6813
inum <http://www.inum.net/>: +883(5100)0800-9804
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130917/3302f0f0/attachment-0001.html>
More information about the ckan-dev
mailing list