TODO:
- Create a repo with just the containers, compose and any scripts needed to get a base configuration running. Call the repo
younite-compose
(it shouldn't contain any YOUnite source) - Validate the steps outlined below
Follow these steps to get a YOUnite deployment up and running as quickly as possible. These steps make reasonable assumptions but if better detail is desired, look at the implementation documents in the Knowledge Base.
Requirements
Access to the younite-compose
repository in Bitbucket TODO - Create a repo with the latest docker images and docker compose only - no source.
Docker 1.13 or later installed on the system(s) you plan to run YOUnite-api and its required services on.
System Requirements:
If you plan to run the entire stack of services on a single system, it most be configured with the following minimums:
- RAM: 16 GB. Running this with 8GB of RAM or less works but intermittent performance issues under moderate load are likely
- Storage: Make sure you have at least 75GB free space (anticipate swapping)
- CPU: Quad Core i7
In Docker Preferences increase the CPUs and Memory to the highest values you can. Suggested configurations:
Available RAM | Configure Docker |
---|---|
8GB | 4GB |
16GB or above | 12GB |
Available CPUs | Configure Docker |
---|---|
4 | 2 |
8 | 6 |
16 or more | 12 |
Clone the Latest and Run the Stack
This compose stack includes an OAuth server which has a UI that can be brought up and Resource Servers and Clients can be created. There should be no need to interact with this component of the stack. All the data that needs to be populated in it to serve the API is populated via the compose.sh
script, which calls populateOauthDB.sh:
Clone the latest
> git clone https://<your-username>@bitbucket.org/younite/younite-compose.git
> cd younite-compose
> git submodule update --init --recursive
Bring up the docker containers (with -d
the containers run in detached mode and minimal console output is sent to the screen)
> ./compose.sh up [-d]
Reset the Databases
TODO: This will change ... if you want to reset YOUnite to its initial state. To do a reset run the following:
> cd younite-compose
> ./compose.sh stop
> ./resetMdmDb.sh
> ./resetOauthDb.sh
> ./compose.sh up -d
Related articles
See the implementation guides in the Knowledge Base