Skip to content

Commit e6b26ab

Browse files
committed
Add support for healthycode docker image deployment
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
1 parent ffdf566 commit e6b26ab

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ services:
4747
- /etc/scancodeio/:/etc/scancodeio/
4848
- workspace:/var/scancodeio/workspace/
4949
- static:/var/scancodeio/static/
50+
- healthycode_venv:/opt/healthycode
5051
restart: always
5152
depends_on:
5253
db:
@@ -67,6 +68,7 @@ services:
6768
- .env:/opt/scancodeio/.env
6869
- /etc/scancodeio/:/etc/scancodeio/
6970
- workspace:/var/scancodeio/workspace/
71+
- healthycode_venv:/opt/healthycode
7072
restart: always
7173
depends_on:
7274
db:
@@ -97,10 +99,19 @@ services:
9799
- workspace:/var/scancodeio/workspace/
98100
restart: always
99101

102+
healthycode:
103+
profiles:
104+
- healthycode
105+
image: healthycode:latest
106+
volumes:
107+
- healthycode_venv:/opt/healthycode
108+
restart: "no"
109+
100110
volumes:
101111
db_data:
102112
redis_data:
103113
clamav_data:
104114
static:
105115
workspace:
106116
webroot:
117+
healthycode_venv:

docker.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ SCANCODEIO_DB_HOST=db
77
SCANCODEIO_RQ_REDIS_HOST=redis
88
SCANCODEIO_ASYNC=True
99
SCANCODEIO_WORKSPACE_LOCATION=/var/scancodeio/workspace/
10+
GRIMOIRELAB_METRICS_EXECUTABLE=/opt/healthycode/.venv/bin/grimoirelab-metrics

0 commit comments

Comments
 (0)