Skip to content

Commit 004fc32

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 5e68070 + 92ddafa commit 004fc32

30 files changed

+385
-386
lines changed

.github/workflows/pr-build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,25 +143,31 @@ jobs:
143143
- name: Env seen
144144
run: env
145145

146+
- name: Cleanup docker before running
147+
if: always()
148+
continue-on-error: true
149+
run: docker-compose -f deploy/docker/docker-compose.yml down --volumes --remove-orphans
150+
146151
- name: Run crAPI using built images
147152
run: VERSION=${{ env.TAG_NAME }} docker-compose -f deploy/docker/docker-compose.yml --compatibility up -d
148153

149154
- name: Install Node
150155
uses: actions/setup-node@v3
151156
with:
152-
node-version: 14
157+
node-version: 16
153158

154159
- name: Install newman
155160
run: npm install -g newman
156161

157162
- name: Run Postman Collection
158-
run: (newman run "./postman_collections/crAPI.postman_collection.json" -e ./postman_collections/crAPI.postman_environment.json --verbose) || true
163+
run: newman run "./postman_collections/crAPI.postman_collection.json" -e ./postman_collections/crAPI.postman_environment.json --verbose
159164

160165
- name: Dump docker logs on failure
161166
if: failure()
162167
uses: jwalton/gh-docker-logs@v2
163168

164169
- name: Cleanup docker
170+
if: always()
165171
run: docker-compose -f deploy/docker/docker-compose.yml down --volumes --remove-orphans
166172

167173

deploy/docker/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ ENABLE_LOG4J=false
66
LISTEN_IP="127.0.0.1"
77
TLS_ENABLED=true
88
VERSION=latest
9+
LOG_LEVEL=INFO

deploy/docker/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ services:
2020
volumes:
2121
- ./keys:/keys
2222
environment:
23+
- LOG_LEVEL=${LOG_LEVEL:-INFO}
2324
- DB_NAME=crapi
2425
- DB_USER=admin
2526
- DB_PASSWORD=crapisecretpassword
@@ -52,6 +53,8 @@ services:
5253
condition: service_healthy
5354
mongodb:
5455
condition: service_healthy
56+
mailhog:
57+
condition: service_healthy
5558
healthcheck:
5659
test: /app/health.sh
5760
interval: 15s
@@ -69,6 +72,7 @@ services:
6972
#ports:
7073
# - "${LISTEN_IP:-127.0.0.1}:8087:8087"
7174
environment:
75+
- LOG_LEVEL=${LOG_LEVEL:-INFO}
7276
- IDENTITY_SERVICE=crapi-identity:${IDENTITY_SERVER_PORT:-8080}
7377
- DB_NAME=crapi
7478
- DB_USER=admin
@@ -108,6 +112,7 @@ services:
108112
#ports:
109113
# - "${LISTEN_IP:-127.0.0.1}:8000:8000"
110114
environment:
115+
- LOG_LEVEL=${LOG_LEVEL:-INFO}
111116
- IDENTITY_SERVICE=crapi-identity:${IDENTITY_SERVER_PORT:-8080}
112117
- DB_NAME=crapi
113118
- DB_USER=admin

deploy/helm/templates/community/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{- toYaml . | nindent 4 }}
99
{{- end }}
1010
data:
11+
LOG_LEVEL: {{ .Values.logLevel | upper }}
1112
IDENTITY_SERVICE: {{ .Values.identity.service.name }}:{{ .Values.identity.port }}
1213
DB_HOST: {{ .Values.postgresdb.service.name }}
1314
DB_DRIVER: {{ .Values.community.config.postgresDbDriver }}

deploy/helm/templates/identity/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{- toYaml . | nindent 4 }}
99
{{- end }}
1010
data:
11+
LOG_LEVEL: {{ .Values.logLevel | upper }}
1112
JWT_SECRET: {{ .Values.jwtSecret }} #Used for creating a JWT. Can be anything
1213
APP_NAME: {{ .Values.identity.config.appName }}
1314
ENABLE_SHELL_INJECTION: {{ .Values.enableShellInjection | quote }}

deploy/helm/templates/workshop/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
release: {{ .Release.Name }}
77
{{- toYaml .Values.workshop.config.labels | nindent 4 }}
88
data:
9+
LOG_LEVEL: {{ .Values.logLevel | upper }}
910
IDENTITY_SERVICE: {{ .Values.identity.service.name }}:{{ .Values.identity.port }}
1011
SECRET_KEY: {{ .Values.workshop.config.secretKey }}
1112
DB_HOST: {{ .Values.postgresdb.service.name }}

deploy/helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ apiGatewayServiceInstall: true
1111
apiGatewayPassword:
1212
tlsEnabled: false
1313
jwtExpiration: 604800000
14+
logLevel: INFO
1415

1516
waitForK8sResources:
1617
image: groundnuty/k8s-wait-for:v1.3

0 commit comments

Comments
 (0)