Go to file
Torben Brenner c967ccf12f docs: Restructured Readme 2022-07-19 15:24:01 +02:00
ccp Updated forward proxy version 2022-06-13 12:40:41 +02:00
docs docs: Restructured Readme 2022-07-19 15:24:01 +02:00
gbn Updated Readme and some other improvements 2022-05-16 08:19:49 +02:00
lib Fixed merge conflicts 2022-07-19 14:18:48 +02:00
nngm Fixed naming 2022-05-11 10:30:18 +02:00
.gitignore Merge branch 'version-1' into develop 2022-07-12 11:06:19 +02:00
LICENSE Updated Readme and c4 docker file 2021-12-27 11:16:27 +01:00
README.md docs: Restructured Readme 2022-07-19 15:24:01 +02:00
bridgehead Refactor fetchVarsFromVault 2022-05-31 09:37:31 +02:00
install-bridgehead.sh Fixed some old relecis 2022-03-02 14:57:27 +01:00
site.dev.conf refactor: Resorted environment and prepared special images for dktk 2022-02-24 10:48:09 +01:00
start-bridgehead.sh Housekeeping and script hardening in /srv/docker/bridgehead. Existing installations need to run bridgehead uninstall, bridgehead install. 2022-05-09 15:13:38 +02:00
stop-bridgehead.sh Housekeeping and script hardening in /srv/docker/bridgehead. Existing installations need to run bridgehead uninstall, bridgehead install. 2022-05-09 15:13:38 +02:00
uninstall-bridgehead.sh Result from Meeting with Patrick 2022-03-01 17:24:53 +01:00
update-bridgehead.sh Housekeeping and script hardening in /srv/docker/bridgehead. Existing installations need to run bridgehead uninstall, bridgehead install. 2022-05-09 15:13:38 +02:00

README.md

Bridgehead

This repository contains all information and tools to deploy a bridgehead. If you have any questions about deploying a bridgehead, please contact us.

Table of Contents

  1. About
  2. Requirements
  3. Getting Started
  4. Configuration
  5. Managing your Bridgehead
  6. Pitfalls
  7. Migration-guide
  8. License

About

TODO: Insert comprehensive feature list of the bridgehead? Why would anyone install it?


Requirements

Hardware

For running your bridgehead we recommend the follwing Hardware:

  • 4 CPU cores
  • At least 8 GB Ram
  • 100GB Hard Drive, SSD recommended

System Requirements

Before starting the installation process, please ensure that following software is available on your system:

Git

Check if you have at least git 2.0 installed on the system with:

git --version

Docker

To check your docker installation, you should execute the docker with --version:

docker --version

The Version should be higher than "20.10.1". Otherwise you will have problems starting the bridgehead. The next step is to check docker-compose with:

docker-compose --version

The recomended version is "2.XX" and higher. If docker-compose was not installed with docker follow these instructions. To futher check your docker and docker-compose installation, please run the following command.

docker-compose -f - up <<EOF
version: "3.7"
services:
  hello-world:
    image: hello-world
EOF

Docker will now download the "hello-world" docker image and try to execute it. After the download you should see a message starting with "Hello from Docker!".

NOTE: If the download of the image fails (e.g with "connection timed out" message), ensure that you have correctly set the proxy for the docker daemon. Refer to "Docker Daemon Proxy Configuration" in the "Pitfalls" section

systemd

You shouldn't need to install it yourself, If systemd is not available on your system you should get another system. To check if systemd is available on your system, please execute

systemctl --version

If systemd is not installed, you can start the bridgehead. However, for productive use we recomend using systemd.


Getting Started

Installation

If your system passed all checks from ["Requirements" section], you are now ready to download the bridgehead.

First, clone the repository to the directory "/srv/docker/bridgehead":

sudo mkdir -p /srv/docker/;
sudo git clone https://github.com/samply/bridgehead.git /srv/docker/bridgehead;

It is recomended to create a user for the bridgehead service. This should be done after clone the repository. Since not all linux distros support adduser, we provide an action for the systemcall useradd. You should try the first one, when the systm can't create the user you should try the second one.

adduser --no-create-home --disabled-login --ingroup docker --gecos "" 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.

chown bridgehead /srv/docker/bridgehead/ -R

Configuration

NOTE: If you are part of the CCP-IT we will provide you another link for the configuration.

Next, you need to configure a set of variables, specific for your site with not so high security concerns. You can clone the configuration template at GitHub. The confiugration of the bridgehead should be located in /etc/bridghead.

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.

Basic Auth

  • 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.

add_user.sh

The result needs to be set in either in the systemd service or in your console.

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.

export bc_auth_user=<output>

Cation: you need to escape occurring dollar signs.

Testing your bridgehead

We recomend to run first with the start and stop script. If you have trouble starting the bridghead have a look at the troubleshooting section.

Now you ready to run a bridgehead instance. The bridgehead scripts checks if your configuration is correct. To check if everything works, execute the following:

/srv/docker/bridgehead/bridgehead start <Project>

You should now be able to access the landing page on your system, e.g "https:///".

To shutdown the bridgehead just run.

/srv/docker/bridgehead/bridgehead stop <Project>

After the Installation

After starting your bridgehead, visit the landing page under the hostname. If you singed your own ssl certificate, there is probable an error message. However, you can accept it as exception.

On this page, there are all important links to each component, central and local.


Roadmap


Authors

  • Patrick Skowronek - Team Member
  • Martin Lablans - Team Member
  • Torben Brenner - Team Member
  • David Croft - Team Member

License

Copyright 2019 - 2022 The Samply Community

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Build With


Acknowledgements