-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
73 lines (68 loc) · 1.89 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '2.1'
services:
pg:
image: postgres:15
environment:
POSTGRES_HOST_AUTH_METHOD: trust
conjur:
image: cyberark/conjur:edge
# TODO: Test with a version that supports authn-sut
command: server -a cucumber
environment:
DATABASE_URL: postgres://postgres@pg/postgres
CONJUR_DATA_KEY: 'WMfApcDBtocRWV+ZSUP3Tjr5XNU+Z2FdBb6BEezejIs='
volumes:
- authn_local:/run/authn-local
- ./ci/oauth/keycloak:/scripts
depends_on:
- pg
- keycloak
keycloak:
image: jboss/keycloak:4.3.0.Final
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_APP_USER=alice
- KEYCLOAK_APP_USER_PASSWORD=alice
- KEYCLOAK_APP_USER_EMAIL=alice@conjur.net
- DB_VENDOR=H2
- KEYCLOAK_CLIENT_ID=conjurClient
- KEYCLOAK_REDIRECT_URI=http://conjur/authn-oidc/keycloak/cucumber/authenticate
- KEYCLOAK_CLIENT_SECRET=1234
- KEYCLOAK_SCOPE=openid
ports:
- "7777:8080"
volumes:
- ./ci/oauth/keycloak/standalone.xml:/opt/jboss/keycloak/standalone/configuration/standalone.xml
- ./ci/oauth/keycloak:/scripts
tester:
build:
context: .
dockerfile: Dockerfile
args:
RUBY_VERSION: ${RUBY_VERSION}
volumes:
- ./spec/reports:/src/conjur-api/spec/reports
- ./features/reports:/src/conjur-api/features/reports
- ./coverage:/src/conjur-api/coverage
- authn_local:/run/authn-local
- ./ci/oauth/keycloak:/scripts
environment:
CONJUR_APPLIANCE_URL: http://conjur
CONJUR_ACCOUNT: cucumber
dev:
build:
context: .
dockerfile: Dockerfile
args:
RUBY_VERSION: ${RUBY_VERSION}
entrypoint: bash
volumes:
- .:/src/conjur-api
- authn_local:/run/authn-local
environment:
CONJUR_ACCOUNT: cucumber
depends_on:
- conjur
volumes:
authn_local: