Software Collections Management Website and Utils
Python HTML CSS ApacheConf Shell JavaScript
Latest commit 38f044d Jan 18, 2017 @hhorak hhorak committed on GitHub Merge pull request #95 from misli/master
Ensure all services are running, update contact information and project url
Permalink
Failed to load latest commit information.
conf do not delete synced repositories from disk Mar 3, 2016
data added data directory for the development instance to be more like the… Dec 13, 2013
htdocs repos under the document_root Dec 13, 2013
rel-eng Automatic commit of package [softwarecollections] release [0.13-1]. Dec 14, 2016
softwarecollections updated contact information and project url Dec 14, 2016
.gitignore Rename software-collections-guide to packaging-guide Nov 21, 2014
Dockerfile Fix Dockerfile to properly create 'test' user Mar 5, 2014
LICENSE license Apr 8, 2014
MANIFEST.in ghost db.sqlite3 and secret_key, packaging Nov 26, 2015
README.docker Add Dockerfile for development and some instructions on how to build/… Mar 5, 2014
README.md added information on data migration Nov 29, 2016
guide-build Rename software-collections-guide to packaging-guide Nov 21, 2014
guide-import simplify guide import, skip front page Oct 27, 2014
guide-source new version of packaging guide Nov 22, 2016
guide-templatize [guide] breadcrumbs Dec 1, 2014
manage.py switch production to postgresql Nov 27, 2015
packaging-guide-1.tar.gz new version of packaging guide Nov 22, 2016
setup.py Automatic commit of package [softwarecollections] release [0.13-1]. Dec 14, 2016
softwarecollections-db-setup softwarecollections-services-setup Dec 14, 2016
softwarecollections-services-setup softwarecollections-services-setup Dec 14, 2016
softwarecollections.spec Automatic commit of package [softwarecollections] release [0.13-1]. Dec 14, 2016

README.md

softwarecollections

Software Collections Management Website

Installation

Enable yum repository from copr:

    sudo dnf copr enable jdornak/SoftwareCollections

Install package softwarecollections:

    sudo dnf install softwarecollections

Configuration (production instance)

Check the configuration in config files:

    sudo vim /etc/softwarecollections/localsettings
    sudo vim /etc/httpd/conf.d/softwarecollections.conf

Development instance

Follow the installation steps. You do not need package softwarecollections itself, but you need all it's requirements.

Clone the git repository:

    git clone git@github.com:sclorg/softwarecollections.git
    cd softwarecollections

Clone the packaging-guide repository

    git clone git@github.com:pmkovar/packaging-guide.git

Import packaging-guide

    ./guide-build  packaging-guide
    ./guide-import packaging-guide

Create local configuration:

    cp softwarecollections/localsettings{-development,}.py

Initialize development database:

    ./manage.py migrate

Run development server:

    ./manage.py runserver

Voilà!

No registration of user is required. You may simply login if You have FAS account.

If You want to access the admin site, first make Yourself a superuser:

    ./manage.py makesuperuser $USER

To update your code and database to the last available version run:

    git pull --rebase
    ./manage.py migrate

You may also need to install some new requirements (see the spec file).

RPM build

To build RPM you need tito package. To release the RPM in Copr, you need copr-cli package.

    sudo dnf install tito copr-cli

To build RPM locally type:

    tito build --rpm        # builds RPM from the latest tagged release
    tito build --rpm --test # builds RPM from the latest commit

To build RPM in Copr type:

    tito release copr       # submits build from the latest tagged release
    tito release copr-test  # submits build from the latest commit

Data migration from one server to another one

  1. Dump all data on the old system:
    softwarecollections dumpdata > data.json
  1. Move data.json to the new system to location accessible by softwarecollections user.
    rsync old:data.json /var/scls/data.json
  1. Delete automaticaly generated tables and load all data from json file:
    echo "delete from auth_permission;" | softwarecollections dbshell
    echo "delete from django_content_type;" | softwarecollections dbshell
    softwarecollections loaddata /var/scls/data.json

Voilà!

Help

If this is Your first time working with Django application, read through the Django Tutorial.

For the detailed information about all aspect of using Django see the Django Documentation.