Skip to content

Commit 1fe580c

Browse files
committed
CI: run glauth in docker
1 parent 38ec2a8 commit 1fe580c

4 files changed

Lines changed: 18 additions & 17 deletions

File tree

scripts/coverage/vey-proxy/0008_ldap_user_auth/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
log: journal
3+
log: stdout
44

55
stat:
66
target:

scripts/coverage/vey-proxy/docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ services:
3737
- "127.0.0.1:2003:2003"
3838
restart: always
3939

40+
glauth:
41+
image: ghcr.io/glauth/glauth:latest
42+
container_name: vey-proxy-glauth
43+
ports:
44+
- "127.0.0.1:3893:3893"
45+
- "127.0.0.1:6363:6363"
46+
volumes:
47+
- ./glauth.cfg:/app/config/config.cfg:ro
48+
- ./vey-proxy.local.pem:/app/config/vey-proxy.local.pem:ro
49+
- ./vey-proxy.local-key.pem:/app/config/vey-proxy.local-key.pem:ro
50+
4051
nginx:
4152
image: nginx:alpine
4253
container_name: vey-proxy-nginx

scripts/coverage/vey-proxy/glauth.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[ldap]
22
enabled = true
3-
listen = "127.0.0.1:3893"
3+
listen = "0.0.0.0:3893"
44
tls = true # support StartTLS
5-
tlsCertPath = "vey-proxy.local.pem"
6-
tlsKeyPath = "vey-proxy.local-key.pem"
5+
tlsCertPath = "/app/config/vey-proxy.local.pem"
6+
tlsKeyPath = "/app/config/vey-proxy.local-key.pem"
77
[ldaps]
88
enabled = true # enable TLS
9-
listen = "127.0.0.1:6363"
10-
certPath = "vey-proxy.local.pem"
11-
keyPath = "vey-proxy.local-key.pem"
9+
listen = "0.0.0.0:6363"
10+
certPath = "/app/config/vey-proxy.local.pem"
11+
keyPath = "/app/config/vey-proxy.local-key.pem"
1212
[backend]
1313
datastore = "config"
1414
baseDN = "dc=glauth,dc=com"

scripts/coverage/vey-proxy/run.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66
docker compose -f "${PROJECT_DIR}"/scripts/coverage/vey-proxy/docker-compose.yml up -d
77

88

9-
# start glauth
10-
git clone https://github.com/glauth/glauth --depth 1
11-
cd glauth/v2
12-
cp "${PROJECT_DIR}"/scripts/coverage/vey-proxy/*pem .
13-
go build
14-
./glauth -c "${PROJECT_DIR}"/scripts/coverage/vey-proxy/glauth.cfg &
15-
GLAUTH_PID=$!
16-
cd -
17-
189
# start vey-dcgen
1910
"${PROJECT_DIR}"/target/debug/vey-dcgen -c "${RUN_DIR}"/vey-dcgen.yaml -G port2999 &
2011
DCGEN_PID=$!
@@ -80,7 +71,6 @@ set +x
8071
kill -INT $STATSD_PID
8172
kill -INT $IPLOC_PID
8273
kill -INT $DCGEN_PID
83-
kill -INT $GLAUTH_PID
8474

8575
## vey-proxy-ftp
8676

0 commit comments

Comments
 (0)