123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- Installation & Configuration
- ============================
- Quick Install: Running in Docker
- You can run Lakesuperior in Docker for a hands-off quickstart.
- `Docker <http://docker.com/>`__ is a containerization platform that
- allows you to run services in lightweight virtual machine environments
- without having to worry about installing all of the prerequisites on
- your host machine.
- 1. Install the correct `Docker Community
- Edition <https://www.docker.com/community-edition>`__ for your
- operating system.
- 2. Clone the Lakesuperior git repository:
- ``git clone
- 3. ``cd`` into repo folder
- 4. Run ``docker-compose up``
- Lakesuperior should now be available at ``http://localhost:8000/``.
- The provided Docker configuration includes persistent storage as a
- self-container Docker volume, meaning your data will persist between
- runs. If you want to clear the decks, simply run
- ``docker-compose down -v``.
- Manual Install (a bit less quick, a bit more power)
- **Note:** These instructions have been tested on Linux. They may work on
- Darwin with little modification, and possibly on Windows with some
- modifications. Feedback is welcome.
- Dependencies
- ~~~~~~~~~~~~
- evaluation purposes, `CoilMQ <https://github.com/hozn/coilmq>`__ is
- included with the dependencies and should be automatically installed.
- Installation steps
- ~~~~~~~~~~~~~~~~~~
- Start in an empty project folder. If you are feeling lazy you can copy
- and paste the lines below in your console.
- ::
- python3 -m venv venv
- source venv/bin/activate
- pip install lakesuperior
-
-
-
-
- coilmq&
-
- lsup-admin bootstrap
-
- fcrepo
- Test if it works::
- curl http://localhost:8000/ldp/
- Advanced Install
- A "developer mode" install is detailed in the
- :ref:`Development Setup<dev_setup>` section.
- Configuration
- The app should run for testing and evaluation purposes without any
- further configuration. All the application data are stored by default in
- the ``data`` directory of the Python package.
- This setup is not recommended for anything more than a quick look at the
- application. If more complex interaction is needed, or upgrades to the package
- are foreseen, it is strongly advised to set up proper locations for
- configuration and data.
- To change the default configuration you need to:
- ``export FCREPO_CONFIG_DIR=<your config dir location>`` (you can add
- this line at the end of your virtualenv ``activate`` script)
- location if any loction options changed
- The configuration options are documented in the files.
- One thing worth noting is that some locations can be specified as relative
- paths. These paths will be relative to the ``data_dir`` location specified in
- the ``application.yml`` file.
- If ``data_dir`` is empty, as it is in the default configuration, it defaults
- to the ``data`` directory inside the Python package. This is the option that
- one may want to change before anything else.
- Production deployment
- If you like fried repositories for lunch, deploy before 11AM.
|