Skip to content

Commit 5c187fc

Browse files
authored
Merge pull request #51 from GitGuardian/jouhannet/readme-updates
Readme update: replicas for docker, version for helm, docker compose up -d
2 parents 11d6d5b + ab68c5b commit 5c187fc

File tree

1 file changed

+42
-7
lines changed

1 file changed

+42
-7
lines changed

README.md

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ For detailed GGBridge configuration instructions on the GitGuardian platform, pl
2323

2424
In summary, the setup process involves the following steps:
2525

26-
1. **Request Bridge Access**
27-
2. **Create Your Bridge**
28-
3. **Configure the Bridge Client**
29-
4. **Configure URL Mapping** (if not done during creation)
30-
5. **Configure Your Integrations**
26+
1. Request Bridge Access
27+
2. Create Your Bridge
28+
3. Configure the Bridge Client
29+
4. Configure URL Mapping
30+
5. Configure Your Integrations
3131

3232
**ggbridge** is distributed as a Distroless Docker image based on Wolfi OS, ensuring minimal dependencies and enhanced security.
3333
Additionaly, a **shell** variant of the Docker image is available, this version includes additional tools and allows you to connect to the container via a shell, facilitating troubleshooting and debugging during development or integration.
@@ -39,10 +39,23 @@ The project offers two deployment methods:
3939

4040
### Docker deployment
4141

42+
> [!WARNING]
43+
> Please consider that [Docker deployment](#docker-deployment) mode is intended for testing purposes. We highly recommend using [Helm deployment](#helm-deployment) mode.
44+
4245
Deploy the ggbridge client via Docker Compose by performing the following actions:
4346

4447
- Create `docker-compose.yml` file
4548

49+
> [!IMPORTANT]
50+
> GGBridge is designed by default to work as HA, so it needs `3` client deployments to work properly. Ensure `replicas: 3` in your `docker-compose.yml` file.
51+
>
52+
> ```yaml
53+
> services:
54+
> client:
55+
> deploy:
56+
> replicas: 3
57+
> ```
58+
4659
```yaml
4760
name: ggbridge
4861
@@ -52,6 +65,8 @@ services:
5265
environment:
5366
SERVER_ADDRESS: <my-subdomain>.ggbridge.gitguardian.com
5467
TLS_ENABLED: 'true'
68+
deploy:
69+
replicas: 3
5570
volumes:
5671
- ./tls/ca.crt:/etc/ggbridge/tls/ca.crt:ro
5772
- ./tls/tls.crt:/etc/ggbridge/tls/client.crt:ro
@@ -63,7 +78,7 @@ services:
6378
- Run `docker-compose`
6479
6580
```shell
66-
docker compose up
81+
docker compose up -d
6782
```
6883
6984
### Helm deployment
@@ -96,11 +111,22 @@ kubectl -n ggbridge create secret generic ggbridge-client-crt \
96111
97112
4. Configure your Helm values.yaml
98113
99-
Edit your Helm values file to point to your bridge server and the secret created above:
114+
Edit your Helm values file to point to your bridge server and the secret created above
115+
(see the [Helm chart values documentation](./helm/ggbridge) for all available configuration options):
116+
117+
> [!IMPORTANT]
118+
> GGBridge is designed by default to work as HA, so it needs `3` client deployments to work properly. Leave it blank or ensure `deploymentCount: 3` in your `values.yaml` file.
119+
>
120+
> ```yaml
121+
> deploymentCount: 3
122+
> ```
100123
101124
```yaml
102125
hostname: <my-subdomain>.ggbridge.gitguardian.com
103126
127+
image:
128+
tag: latest
129+
104130
tls:
105131
enabled: true
106132
existingSecret: ggbridge-client-crt
@@ -110,6 +136,15 @@ tls:
110136
key: tls.key
111137
```
112138
139+
> [!TIP]
140+
> If you need to debug the deployment, you can use the image `latest-shell` instead of `latest`. This image comes with embedded tooling for debugging purposes. :
141+
>
142+
> ```yaml
143+
> image:
144+
> tag: latest-shell
145+
> ```
146+
147+
113148
For **OpenShift** deployment, use the following values:
114149
115150
```yaml

0 commit comments

Comments
 (0)