Skip to content

Commit 87318a6

Browse files
committed
github: Add a test for certbot, using pebble.
1 parent a2074d8 commit 87318a6

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

ci/certbot/compose.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
services:
3+
zulip:
4+
environment:
5+
SSL_CERTIFICATE_GENERATION: certbot
6+
networks:
7+
zulip-backend:
8+
ipv4_address: 172.28.5.100
9+
depends_on:
10+
- pebble
11+
- challtestsrv
12+
13+
database:
14+
networks: [zulip-backend]
15+
memcached:
16+
networks: [zulip-backend]
17+
rabbitmq:
18+
networks: [zulip-backend]
19+
redis:
20+
networks: [zulip-backend]
21+
22+
pebble:
23+
image: ghcr.io/letsencrypt/pebble:latest
24+
volumes:
25+
- ./ci/certbot/pebble-config/:/config/
26+
command: -config /config/pebble-config.json -strict -dnsserver challtestsrv:8053
27+
ports:
28+
- 14000:14000 # HTTPS ACME API
29+
- 15000:15000 # HTTPS Management API
30+
networks: [zulip-backend]
31+
challtestsrv:
32+
image: ghcr.io/letsencrypt/pebble-challtestsrv:latest
33+
command: -defaultIPv6 "" -defaultIPv4 172.28.5.100
34+
networks: [zulip-backend]
35+
36+
networks:
37+
zulip-backend:
38+
driver: bridge
39+
ipam:
40+
driver: default
41+
config:
42+
- subnet: 172.28.0.0/16
43+
ip_range: 172.28.5.0/24
44+
gateway: 172.28.5.254

ci/certbot/env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../basic/env

ci/certbot/test.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
set -o pipefail
5+
6+
url="https://${hostname:?}"
7+
8+
curl --verbose --insecure "${url}"

0 commit comments

Comments
 (0)