Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions taskfiles/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,26 @@ tasks:
compose:clean:
dir: "{{.G_SPIDER_COMPOSE_DIR}}"
cmd: "docker compose --file compose.yaml down --volumes --remove-orphans"

# Starts a local Spider deployment with libraries mounted into every worker.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add image override to the docstring

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are already listed as parameters.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my latest review comment, that's what I mean by this

Comment thread
sitaowang1998 marked this conversation as resolved.
Resolved
#
# @param {string} SPIDER_WORKER_LIBRARY_DIR The host directory containing the libraries.
Comment thread
20001020ycx marked this conversation as resolved.
Resolved
compose:local:up:
env:
SPIDER_WORKER_LIBRARY_DIR: "{{.SPIDER_WORKER_LIBRARY_DIR}}"
requires:
vars: ["SPIDER_WORKER_LIBRARY_DIR"]
dir: "{{.G_SPIDER_COMPOSE_DIR}}"
cmd: >-
docker compose --project-name spider-local --file compose.yaml
--file compose.local.yaml up --detach --wait --wait-timeout 300
Comment thread
20001020ycx marked this conversation as resolved.
Resolved

compose:local:down:
dir: "{{.G_SPIDER_COMPOSE_DIR}}"
cmd: "docker compose --project-name spider-local --file compose.yaml down"

compose:local:clean:
dir: "{{.G_SPIDER_COMPOSE_DIR}}"
cmd: >-
docker compose --project-name spider-local --file compose.yaml down
--volumes --remove-orphans
7 changes: 7 additions & 0 deletions tools/deployment/spider-compose/compose.local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
spider-worker:
volumes:
- type: "bind"
source: "${SPIDER_WORKER_LIBRARY_DIR:?}"
target: "${SPIDER_WORKER_PACKAGE_DIR:-/opt/spider/packages}"
read_only: true
Loading