-
Notifications
You must be signed in to change notification settings - Fork 1
CEDAR Server Install Guide
These instructions are deprecated and are kept for reference only. We have adopted a Docker-based installation process that supersede these instructions.
The application is composed from several micro services. All services need to be installed, configured, and run separately.
The process is similar for all Unix-based operating systems, with small differences. In this guide we will present the steps for Mac OS X and for Red Hat Enterprise Linux 6.6. In case of other Unix-based systems, the steps should be similar.
We present how to set up a development environment on OS X, and a production environment on Red Hat.
For the versions of the different components, see the CEDAR parent POM.
- The commands are executed with a dedicated user, cedar, who has sudo privileges.
- Nothing should be installed with root unless explicitly specified!
If you log in to the server with your own account, and want to switch to the cedar service account, but you do not know its password, use the following line to switch user:
sudo su - cedar
If you see commands in this guide that should be executed using sudo, but you do not know the password of cedar user, you should log out from the cedar session and log in using your own user, execute the sudo-prefixed command there, and switch back to the cedar user. Be careful, because working directories change when switching users.
If things are not happening as they should, please always check if all the configuration changes are applied to the services. Please stop and start the servers that you suspect are behaving strangely. The two likely culprits are:
- Nginx
- Keycloak
- Create a service user
- Create a home directory for the project
- Configure environment variables and aliases
- Create a log directory for the project
- Get the code
- Install JDK
- Install Homebrew
- Install Maven
- Install MongoDB
- Install Elasticsearch
- Install Nginx
- Install Redis
- Configure host names
- Configure Nginx for Keycloak
- Install Keycloak
- Configure Keycloak
- Install Neo4j
- Configure HTTPS for Nginx to Keycloak Communication
- Generate keycloak.json
- Install NodeJS, NPM, Gulp
- Launch the third-party back end components
- Build an launch the back end
- Configure Nginx for HTTPS using a Signed Certificate
- Build and launch the front end
- Launch every component
- Useful scripts
- iTerm2 + zsh + oh-my-zsh on OS X
- Using a Self-Signed Certificate when Configuring Nginx for SSL
- Introduction
- Generate self-signed certificate for Nginx
- Configure NginX with self-signed certificate
- Import ca.crt as a trusted certificate
- Install Root CA certificate