Fixed TOC and and added some more text to readme
This commit is contained in:
parent
ae698ee7ab
commit
0cee3b5083
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Basic Configuration to start a docker based bridgehead at CCP sites
|
- Basic Configuration to start a docker based bridgehead at CCP sites
|
||||||
- bridgehead cli tool for convenient start, stop and update commands for bridgehead administrators
|
- bridgehead cli tool for convenient start, stop and update commands for bridgehead administrators
|
||||||
|
|
79
README.md
79
README.md
|
@ -2,41 +2,39 @@
|
||||||
|
|
||||||
This repository contains all information and tools to deploy a bridgehead. If you have any questions about deploying a bridgehead, please [contact us](mailto:verbis-support@dkfz-heidelberg.de).
|
This repository contains all information and tools to deploy a bridgehead. If you have any questions about deploying a bridgehead, please [contact us](mailto:verbis-support@dkfz-heidelberg.de).
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
# Table of Contents
|
|
||||||
|
|
||||||
1. [About](#about)
|
1. [About](#about)
|
||||||
- [Projects](#projects)
|
2. [Requirements](#requirements)
|
||||||
- [GBA/BBMRI-ERIC](#gbabbmri-eric)
|
|
||||||
- [CCP(DKTK/C4)](#ccpdktkc4)
|
|
||||||
- [NNGM](#nngm)
|
|
||||||
- [Bridgehead Components](#bridgehead-components)
|
|
||||||
- [Blaze Server](#blaze-serverhttpsgithubcomsamplyblaze)
|
|
||||||
- [Connector](#connector)
|
|
||||||
1. [Requirements](#requirements)
|
|
||||||
- [Hardware](#hardware)
|
- [Hardware](#hardware)
|
||||||
- [System](#system-requirements)
|
- [System Requrements](#system-requirements)
|
||||||
- [git](#git)
|
- [git](#git)
|
||||||
- [docker](#dockerhttpsdocsdockercomget-docker)
|
- [docker](#dockerhttpsdocsdockercomget-docker)
|
||||||
- [systemd](#systemd)
|
3. [Getting Started](#getting-started)
|
||||||
2. [Getting Started](#getting-started)
|
- [Installation](#installation)
|
||||||
- [DKTK](#dktkc4)
|
4. [Configuration](#configuration)
|
||||||
- [C4](#c4)
|
- [Authentication](#basic-auth)
|
||||||
- [GBA/BBMRI-ERIC](#gbabbmri-eric)
|
- [systemd](#systemd)
|
||||||
3. [Configuration](#configuration)
|
- [environment](#without-systemd)
|
||||||
4. [Managing your Bridgehead](#managing-your-bridgehead)
|
- [Testing](#testing-your-bridgehead)
|
||||||
- [Systemd](#on-a-server)
|
- [After the Installation](#after-the-installation)
|
||||||
- [Without Systemd](#on-developers-machine)
|
5. [Roadmap](#roadmap-🚀)
|
||||||
4. [Pitfalls](#pitfalls)
|
6. [Authors](#authors)
|
||||||
5. [Migration-guide](#migration-guide)
|
|
||||||
7. [License](#license)
|
7. [License](#license)
|
||||||
|
8. [Build With](#build-with)
|
||||||
|
9. [Acknowledgements](#acknowledgements)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
TODO: Insert comprehensive feature list of the bridgehead? Why would anyone install it?
|
The Bridgehead is a collection of Software componentens for medical informatics usecases. This repository helps the user to deploy these compoents efficently. The bridgehead contains of project independen components:
|
||||||
|
|
||||||
|
- forward proxy
|
||||||
|
- reverse proxy
|
||||||
|
- landingpage
|
||||||
|
|
||||||
|
Also, the bridgehead contains of componentens that are project specific. For deatil refer to each project in [Projects](docs/projects.md).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -126,7 +124,7 @@ adduser --no-create-home --disabled-login --ingroup docker --gecos "" bridgehead
|
||||||
useradd -M -g docker -N -s /sbin/nologin bridgehead
|
useradd -M -g docker -N -s /sbin/nologin bridgehead
|
||||||
```
|
```
|
||||||
|
|
||||||
After adding the User you need to change the ownership of the directory to the bridgehead user.
|
After adding the User you need to change the ownership of the directories to the bridgehead user.
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
chown bridgehead /srv/docker/bridgehead/ -R
|
chown bridgehead /srv/docker/bridgehead/ -R
|
||||||
|
@ -144,25 +142,44 @@ sudo git clone https://github.com/samply/bridgehead-config.git /etc/bridgehead;
|
||||||
|
|
||||||
After cloning or forking the repository you need to add value to the template. If you are a part of the CCP-IT you will get an already filled out config repo.
|
After cloning or forking the repository you need to add value to the template. If you are a part of the CCP-IT you will get an already filled out config repo.
|
||||||
|
|
||||||
|
After cloning your configuration you need to change the ownership of the folder aswell.
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
chown bridgehead /etc/bridgehead/ -R
|
||||||
|
```
|
||||||
|
|
||||||
#### Basic Auth
|
#### Basic Auth
|
||||||
|
|
||||||
- [ ] TODO: Explain what will work without this
|
- [ ] TODO: Explain what will work without this
|
||||||
|
|
||||||
For Data protection we use basic authenfication for some services. To access those services you need an username and password combination. If you start the bridgehead without basic auth, then those services are not accesbile. We provide a script which set the needed config for you, just run the script and follow the instructions.
|
For data protection we use basic authenfication for some services. To access those services you need an username and password combination. If you start the bridgehead without basic auth, then those services are not accesbile. We provide a script to generate a basic auth login.
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
add_user.sh
|
lib/add_bc_user.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The result needs to be set in either in the _systemd service_ or in your console.
|
The result needs to be set in either in the _systemd service_ or in your environment.
|
||||||
|
|
||||||
When just running the bridgehead you need to export the auth variable. Be aware that this export is only for the current session in the environment and after exit it will not be accessible anymore.
|
##### systemd
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
sudo systemctl edit <project>
|
||||||
|
```
|
||||||
|
``` conf
|
||||||
|
[Service]
|
||||||
|
...
|
||||||
|
Environment=bc_auth_users=<hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
##### without systemd
|
||||||
|
|
||||||
|
Either add the hash to the environment with an export, or add it to /etc/environment
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
export bc_auth_user=<output>
|
export bc_auth_user=<output>
|
||||||
```
|
```
|
||||||
|
|
||||||
Cation: you need to escape occurring dollar signs.
|
Cation: for exporting need to escape occurring dollar signs with back slashes.
|
||||||
|
|
||||||
### Testing your bridgehead
|
### Testing your bridgehead
|
||||||
|
|
||||||
|
@ -220,6 +237,7 @@ Unless required by applicable law or agreed to in writing, software distributed
|
||||||
---
|
---
|
||||||
|
|
||||||
## Build With
|
## Build With
|
||||||
|
|
||||||
- [Git](https://git-scm.com/)
|
- [Git](https://git-scm.com/)
|
||||||
- [Docker](https://docs.docker.com/)
|
- [Docker](https://docs.docker.com/)
|
||||||
- [Docker Compose](https://docs.docker.com/compose/)
|
- [Docker Compose](https://docs.docker.com/compose/)
|
||||||
|
@ -228,4 +246,5 @@ Unless required by applicable law or agreed to in writing, software distributed
|
||||||
---
|
---
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
- [samply/bridgehead-deployment](https://github.com/samply/bridgehead-deployment)
|
- [samply/bridgehead-deployment](https://github.com/samply/bridgehead-deployment)
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
### This is the configuration file for secrets, only your site should know
|
|
||||||
|
|
||||||
##Setting Network properties
|
|
||||||
export HOSTIP=$(MSYS_NO_PATHCONV=1 docker run --rm --add-host=host.docker.internal:host-gateway ubuntu cat /etc/hosts | grep 'host.docker.internal' | awk '{print $1}');
|
|
||||||
export HOST=
|
|
||||||
|
|
||||||
export site_name=
|
|
||||||
### Write the Project you want to start with the brigdehead
|
|
||||||
##Exmaple project=dktk-fed
|
|
||||||
export project=
|
|
Loading…
Reference in New Issue