Skip to content

Commit e1f32dd

Browse files
committed
add eopa-pull step
Signed-off-by: Stephan Renatus <[email protected]>
1 parent 8faa48d commit e1f32dd

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

.styra.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data:
2+
- .styra/include
3+

.styra/.gitkeep

Whitespace-only changes.

docker-compose.yaml

+18-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,24 @@ x-styra-env:
33
&styra-env
44
EOPA_LICENSE_KEY: ${EOPA_LICENSE_KEY}
55
STYRA_DAS_TOKEN: ${STYRA_DAS_TOKEN}
6+
EOPA_STYRA_DAS_TOKEN: ${STYRA_DAS_TOKEN}
67
STYRA_DAS_TENANT: ${STYRA_DAS_TENANT}
78
STYRA_DAS_SYSTEM: ${STYRA_DAS_SYSTEM:-}
89

910
services:
11+
eopa-pull:
12+
image: ghcr.io/styrainc/enterprise-opa:latest
13+
command:
14+
- pull
15+
- --url=https://${STYRA_DAS_TENANT}.styra.com
16+
working_dir: /work
17+
volumes: &styra-volumes
18+
- .styra.yaml:/work/.styra.yaml
19+
- .styra:/work/.styra
20+
environment: *styra-env
21+
profiles:
22+
- ci
23+
1024
opa-ci:
1125
image: ghcr.io/styrainc/enterprise-opa:latest
1226
ports:
@@ -15,14 +29,13 @@ services:
1529
- run
1630
- --server
1731
- --addr=:8181
18-
- users:/data/data.json
19-
- /policies/rules/rules.rego
20-
volumes:
21-
- ./opa/:/data
22-
- ./policies/prod/:/policies
32+
working_dir: /work
33+
volumes: *styra-volumes
2334
environment: *styra-env
2435
profiles:
2536
- ci
37+
depends_on:
38+
- eopa-pull
2639

2740
opa-prod:
2841
image: ghcr.io/styrainc/enterprise-opa:latest

0 commit comments

Comments
 (0)