Skip to content

DD-DeCaF/caffeine-bootstrap

Repository files navigation

Welcome to Caffeine Bootstrap!

On-Premise Installation

This repository will help you create a local installation of the Caffeine platform. It is aimed at users who want to try out the platform with their own proprietary data, but do not want to upload that data to the public platform.

Please note that our public platform does allow for user registration, and any uploaded data is of course only accessible to its owner. To avoid the hassle of a local installation, consider simply using the public platform at: https://caffeine.dd-decaf.eu

The bootstrap installation behaves mostly like the public platform, but with a few notable differences described below.

Authentication:

There is no firebase authentication, which means that you can not log in with a social account like Google, Twitter or Github. Instead, you need to log in with one of our predefined user accounts.

Email address: demo0@demo Password: demo

We have created 40 accounts, so you can replace 0 with any number up to 39 for the email address: demo[0-39]@demo

Public models and maps:

The public models and maps on the public platform do not come pre-installed with the bootstrap installation. Since the platform will be empty when you visit it for the first time, one of the first things you might want to do is to upload your own data.

How to Install the Caffeine Platform

  1. Prerequisites

    You need git, docker, docker-compose and ideally CPLEX to install and run the platform (see documentation/cplex.md for more information). As described there, please start by placing your CPLEX compressed archive (cplex_128.tar.gz) in the cplex/ directory.

    Please also set an administrative password for the database server. The username is automatically postgres. You can either define an environment variable POSTGRES_PASSWORD (export POSTGRES_PASSWORD=... on Linux and MacOS) or write it to a .env file (POSTGRES_PASSWORD=...).

    To make sure all prerequisites are satisfied, run:

    make check
    
  2. Installation

    Run the installation in multiple steps. Please note that you can run the installation in parallel using make -j (you may want to synchronize output in that case with -O).

    1. Create all local repositories.

      make setup
      
    2. Build all Docker images.

      make install -j -O
      

      This may take a while (expect 10-15 minutes), depending on your bandwidth and processing power. We recommend you take a look at the Makefile to understand what it does. Again, you can reduce the time needed through parallelization but you need enough memory, too.

    3. Initialize the platform. Careful, this will reset all database volumes. So don't run this command after using the platform for a while.

      make initialize
      
  3. Running

    Start all services with docker-compose:

    docker-compose up --detach
    

    Optionally, you can look at the log output, too. It is a good place to spot errors. Please, at the very least, make sure that all services are running with

    docker-compose ps
    

    You may initially see "connection refused" errors or similar while services are starting up. It shouldn't take more than a minute until all services are ready and stop showing error messages.

    When the services are ready, point your browser to: http://localhost:4200/. Replace localhost with the address of the machine if accessing it remotely.

Also look into the separate instructions to install the platform on a server without internet connection if that concerns you.

Support

Please don't hesitate to get in touch if you have any questions.

Thank you for trying out our platform!

  • Niko, Moritz, Christian & Ali

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published