Skip to content

Commit

Permalink
example configs + compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmoho committed Aug 19, 2024
1 parent 6dc07e1 commit 64e78f4
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 15 deletions.
42 changes: 28 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
configs:
model-polisher-config:
# you may want to adapt this your config
- file: ./examples/config.json

services:

polisher:
image: mephenor/modelpolisher:2.1-beta
depends_on:
- biggdb
- adb
configs:
- source: model-polisher-config
target: /config.json
command: ['--config-file', '/config.json']
volumes:
# you may want to adapt these to your local input
# and output directories
- "input:/input-dir"
- "output:/output-dir"

biggdb:
image: schmirgel/bigg_db:1.6
container_name: modelpolisher_biggdb
ports:
- 127.0.0.1:1310:5432
hostname: bigg
networks:
- dbs

adb:
image: schmirgel/annotatedb:0.1.1
container_name: modelpolisher_adb
ports:
- 127.0.0.1:1013:5432
hostname: adb
networks:
- dbs

polisher:
image: mephenor/modelpolisher:2.1-beta
depends_on:
- biggdb
- adb
container_name: modelpolisher_java
stdin_open: true
tty: true
networks:
- dbs
53 changes: 53 additions & 0 deletions examples/compose-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"input": "input-dir",
"output": "output-dir",
"output-type": "xml",

"fixing": {
"dont-fix": false,
"fix-flux-objectives": {
"flux-coefficients": [],
"flux-objectives": []
}
},

"polishing": {
"polish-even-if-model-invalid": false
},

"annotation": {
"bigg": {
"annotate-with-bigg": true,
"include-any-uri": true,
"document-title-pattern": "[biggId] - [organism]",
"notes": {
"no-model-notes": true,
"model-notes-file": null,
"document-notes-file": null
},
"db-config": {
"db-name": "bigg",
"host": "bigg",
"password": "postgres",
"user": "postgres",
"port": 5432
}
},
"annotatedb": {
"annotate-with-adb": true,
"db-config": {
"db-name": "adb",
"host": "adb",
"password": "postgres",
"user": "postgres",
"port": 5432
}
}
},

"sbo-terms": {
"add-generic-terms": false
},

"sbml-validation": false
}
2 changes: 1 addition & 1 deletion examples/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"input": "examples",
"input": "examples/input",
"output": "examples/output",
"output-type": "xml",

Expand Down

0 comments on commit 64e78f4

Please sign in to comment.