Skip to content

Commit 42b6ccf

Browse files
committed
updated compose files to use janitor
1 parent abc716e commit 42b6ccf

File tree

5 files changed

+65
-5
lines changed

5 files changed

+65
-5
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,50 @@ jobs:
198198
file: './server/worker/Dockerfile'
199199

200200

201+
202+
push_janitor_dockerhub:
203+
permissions:
204+
packages: write
205+
contents: read
206+
attestations: write
207+
id-token: write
208+
209+
uses: ./.github/workflows/dockerhub-publish.yml
210+
secrets:
211+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
212+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
213+
DOCKERHUB_NAMESPACE: ${{ secrets.DOCKERHUB_NAMESPACE }}
214+
with:
215+
image_name: 'qJanitor'
216+
context: './janitor'
217+
file: './janitor/Dockerfile'
218+
219+
push_janitor_ghcr:
220+
permissions:
221+
contents: read
222+
packages: write
223+
attestations: write
224+
id-token: write
225+
226+
uses: ./.github/workflows/ghcr-publish.yml
227+
secrets:
228+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
229+
with:
230+
image_name: 'qJanitor'
231+
context: './janitor'
232+
file: './janitor/Dockerfile'
233+
234+
201235

202236
test-dockerhub-production-compose-file:
203-
needs: [push_api_dockerhub, push_database_dockerhub, push_jobs_server_dockerhub, push_proxy_dockerhub, push_worker_dockerhub]
237+
needs: [push_api_dockerhub, push_database_dockerhub, push_jobs_server_dockerhub, push_proxy_dockerhub, push_worker_dockerhub, push_janitor_dockerhub]
204238
uses: ./.github/workflows/compose-test.yml
205239
with:
206240
file: './compose.yml'
207241

208242

209243
test-ghcr-production-compose-file:
210-
needs: [push_api_ghcr, push_database_ghcr, push_jobs_server_ghcr, push_proxy_ghcr, push_worker_ghcr]
244+
needs: [push_api_ghcr, push_database_ghcr, push_jobs_server_ghcr, push_proxy_ghcr, push_worker_ghcr, push_janitor_ghcr]
211245
uses: ./.github/workflows/compose-test.yml
212246
with:
213247
file: './ghcr-prod-compose.yml'

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"qasm",
6666
"qexec",
6767
"qiskit",
68+
"qjanitor",
6869
"qjobsserver",
6970
"qnet",
7071
"qproxy",

compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,18 @@ services:
142142
- logs:/logs
143143
networks:
144144
- qnet
145+
146+
janitor:
147+
container_name: janitor
148+
image: dpbm32/qjanitor
149+
environment:
150+
- LOGS_PATH=/data/logs
151+
- QASM_PATH=/data/qasm
152+
- TIME_TO_DELETE=5 # in days
153+
restart: always
154+
volumes:
155+
- qasm:/data/qasm
156+
- logs:/data/logs
145157

146158
volumes:
147159
data:

dev-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ services:
136136
context: ./janitor
137137
dockerfile: Dockerfile
138138
environment:
139-
- LOGS_PATH=/data/logs
140-
- QASM_PATH=/data/qasm
141-
- TIME_TO_DELETE=5 # in days
139+
LOGS_PATH: /data/logs
140+
QASM_PATH: /data/qasm
141+
TIME_TO_DELETE: 5 # in days
142+
restart: always
142143
volumes:
143144
- qasm:/data/qasm
144145
- logs:/data/logs

ghcr-prod-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ services:
143143
networks:
144144
- qnet
145145

146+
janitor:
147+
container_name: janitor
148+
image: ghcr.io/dpbm/qjanitor
149+
environment:
150+
- LOGS_PATH=/data/logs
151+
- QASM_PATH=/data/qasm
152+
- TIME_TO_DELETE=5 # in days
153+
restart: always
154+
volumes:
155+
- qasm:/data/qasm
156+
- logs:/data/logs
157+
146158
volumes:
147159
data:
148160
external: false

0 commit comments

Comments
 (0)