mirror of https://github.com/samply/bridgehead.git
Updated README.md with new bridgehead command
This commit is contained in:
parent
fb583b474c
commit
4d305e4e2f
28
README.md
28
README.md
|
@ -72,7 +72,7 @@ For running your bridgehead we recommend the follwing Hardware:
|
||||||
|
|
||||||
- 4 CPU cores
|
- 4 CPU cores
|
||||||
- At least 8 GB Ram
|
- At least 8 GB Ram
|
||||||
- 100GB Hard Drive, recomended is a SSD
|
- 100GB Hard Drive, SSD recommended
|
||||||
|
|
||||||
|
|
||||||
### System Requirements
|
### System Requirements
|
||||||
|
@ -173,23 +173,23 @@ sudo git clone https://github.com/samply/bridgehead-config.git /etc/bridgehead;
|
||||||
|
|
||||||
You should now be able to run a bridgehead instance. To check if everything works, execute the following:
|
You should now be able to run a bridgehead instance. To check if everything works, execute the following:
|
||||||
``` shell
|
``` shell
|
||||||
sudo ./start-bridgehead.sh <project>;
|
/srv/docker/bridgehead/bridgehead start <project>
|
||||||
```
|
```
|
||||||
|
|
||||||
You should now be able to access the landing page on your system, e.g "https://<your-host>/"
|
You should now be able to access the landing page on your system, e.g "https://<your-host>/"
|
||||||
|
|
||||||
To shutdown the bridgehead just run.
|
To shutdown the bridgehead just run.
|
||||||
``` shell
|
``` shell
|
||||||
sudo ./stop-bridgehead.sh <project>;
|
/srv/docker/bridgehead/bridgehead stop <project>
|
||||||
```
|
```
|
||||||
|
|
||||||
We recomend to run firstly with the start and stop script and if aviable run the systemd service, which also enables automatic updates and more.
|
We recommend to run first with the start and stop script and if aviable run the systemd service, which also enables automatic updates and more.
|
||||||
|
|
||||||
### Systemd service
|
### Systemd service
|
||||||
|
|
||||||
For a server, we highly recommend that you install the system units for managing the bridgehead, provided by us. You can do this by executing the [setup-bridgehead-units.sh](./lib/setup-bridgehead-units.sh) script:
|
For a server, we highly recommend that you install the system units for managing the bridgehead, provided by us. You can do this by executing the [bridgehead](./bridgehead) script:
|
||||||
``` shell
|
``` shell
|
||||||
sudo ./lib/setup-bridgehead-units.sh <project>
|
sudo /srv/docker/bridgehead/bridgehead install <project>
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, you need to configure your sites secrets. These are places as configuration for each bridgeheads system unit. Refer to the section for your specific project:
|
Finally, you need to configure your sites secrets. These are places as configuration for each bridgeheads system unit. Refer to the section for your specific project:
|
||||||
|
@ -384,34 +384,34 @@ sudo systemctl start bridgehead-update@<dktk/c4/gbn>
|
||||||
|
|
||||||
#### Remove the Bridgehead System Units
|
#### Remove the Bridgehead System Units
|
||||||
|
|
||||||
If, for some reason you want to remove the installed bridgehead units, we added a [script](./lib/remove-bridgehead-units.sh) you can execute:
|
If, for some reason you want to remove the installed bridgehead units, we added a command to [bridgehead](./bridgehead):
|
||||||
``` shell
|
``` shell
|
||||||
sudo ./lib/remove-bridgehead-units.sh
|
sudo /srv/docker/bridgehead/bridgehead uninstall <project>
|
||||||
```
|
```
|
||||||
|
|
||||||
### On Developers Machine
|
### On Developers Machine
|
||||||
|
|
||||||
For developers, we provide additional scripts for starting and stopping the specif bridgehead:
|
For developers, we provide additional scripts for starting and stopping the specif bridgehead:
|
||||||
|
|
||||||
#### Start
|
#### Start or stop
|
||||||
|
|
||||||
This shell script start a specified bridgehead. Choose between "dktk", "c4" and "gbn".
|
This command starts a specified bridgehead. Choose between "dktk", "c4" and "gbn".
|
||||||
``` shell
|
``` shell
|
||||||
./start-bridgehead <dktk/c4/gbn>
|
/srv/docker/bridgehead/bridgehead start <dktk/c4/gbn>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Stop
|
#### Stop
|
||||||
|
|
||||||
This shell script stops a specified bridgehead. Choose between "dktk", "c4" and "gbn".
|
This command stops a specified bridgehead. Choose between "dktk", "c4" and "gbn".
|
||||||
``` shell
|
``` shell
|
||||||
./stop-bridgehead <dktk/c4/gbn>
|
/srv/docker/bridgehead/bridgehead stop <dktk/c4/gbn>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Update
|
#### Update
|
||||||
|
|
||||||
This shell script updates the configuration for all bridgeheads installed on your system.
|
This shell script updates the configuration for all bridgeheads installed on your system.
|
||||||
``` shell
|
``` shell
|
||||||
./update-bridgehead
|
/srv/docker/bridgehead/bridgehead update
|
||||||
```
|
```
|
||||||
> NOTE: If you want to regularly update your developing instance, you can create a CRON job that executes this script.
|
> NOTE: If you want to regularly update your developing instance, you can create a CRON job that executes this script.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue