Skip to content

Commit

Permalink
Merge pull request #519 from nexB/516-update-docker-files
Browse files Browse the repository at this point in the history
516 update compose files
  • Loading branch information
JonoYang authored Aug 5, 2024
2 parents b0761cc + 56103e6 commit 1b238ba
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 58 deletions.
54 changes: 0 additions & 54 deletions docker-compose.common.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
db:
image: postgres:13
Expand Down Expand Up @@ -32,58 +30,6 @@ services:
depends_on:
- db

visitor:
build: .
command: sh -c "
wait-for-it web:8000 -- python manage_purldb.py seed &&
python manage_purldb.py run_visit --ignore-robots --ignore-throttle"
env_file:
- docker_purldb.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- visit_and_map
depends_on:
- db
- web # Ensure that potential db migrations run first

mapper:
build: .
command: wait-for-it web:8000 -- python manage_purldb.py run_map
env_file:
- docker_purldb.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- visit_and_map
depends_on:
- db
- web # Ensure that potential db migrations run first

clearsync:
build: .
command: wait-for-it web:8000 -- clearsync --save-to-db --verbose -n 3
env_file:
- docker_purldb.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- clearsync
depends_on:
- db
- web # Ensure that potential db migrations run first

clearindex:
build: .
command: wait-for-it web:8000 -- python manage_purldb.py run_clearindex
env_file:
- docker_purldb.env
profiles:
- clearsync
depends_on:
- db
- web # Ensure that potential db migrations run first

priority_queue:
build: .
command: wait-for-it web:8000 -- python manage_purldb.py priority_queue
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.matchcodeio.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
matchcodeio_db:
image: postgres:13
Expand Down
55 changes: 55 additions & 0 deletions docker-compose.miners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
include:
- docker-compose.common.yml

services:
visitor:
build: .
command: sh -c "
wait-for-it web:8000 -- python manage_purldb.py seed &&
python manage_purldb.py run_visit --ignore-robots --ignore-throttle"
env_file:
- docker_purldb.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- visit_and_map
depends_on:
- db
- web # Ensure that potential db migrations run first

mapper:
build: .
command: wait-for-it web:8000 -- python manage_purldb.py run_map
env_file:
- docker_purldb.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- visit_and_map
depends_on:
- db
- web # Ensure that potential db migrations run first

clearsync:
build: .
command: wait-for-it web:8000 -- clearsync --save-to-db --verbose -n 3
env_file:
- docker_purldb.env
volumes:
- /etc/purldb/:/etc/purldb/
profiles:
- clearsync
depends_on:
- db
- web # Ensure that potential db migrations run first

clearindex:
build: .
command: wait-for-it web:8000 -- python manage_purldb.py run_clearindex
env_file:
- docker_purldb.env
profiles:
- clearsync
depends_on:
- db
- web # Ensure that potential db migrations run first
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.7"

include:
- docker-compose.common.yml

Expand Down

0 comments on commit 1b238ba

Please sign in to comment.