Skip to content

Commit

Permalink
fix: build daemon in container
Browse files Browse the repository at this point in the history
  • Loading branch information
zyoshoka committed Sep 22, 2024
1 parent 3f2a2d9 commit 6df3b0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/backend/test-federation/compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ services:
- internal_network_b
volumes:
- type: volume
source: node_modules
source: node_modules_dev
target: /misskey/node_modules
- type: volume
source: node_modules_backend
source: node_modules_backend_dev
target: /misskey/packages/backend/node_modules

redis.test:
Expand Down
12 changes: 8 additions & 4 deletions packages/backend/test-federation/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,19 @@ services:
misskey.b.test:
condition: service_healthy
environment:
- NODE_ENV=production
- TESTER_IP_ADDRESS=$TESTER_IP_ADDRESS
volumes:
- type: bind
source: ../package.json
target: /misskey/packages/backend/package.json
read_only: true
- type: bind
source: ./built
target: /misskey/packages/backend/test-federation
source: ./daemon.ts
target: /misskey/packages/backend/test-federation/daemon.ts
read_only: true
- type: bind
source: ./tsconfig.json
target: /misskey/packages/backend/test-federation/tsconfig.json
read_only: true
- type: bind
source: ../../../package.json
Expand All @@ -104,7 +107,8 @@ services:
bash -c "
corepack enable && corepack prepare
pnpm -F backend i
node ./packages/backend/test-federation/daemon.js
pnpm exec tsc -p ./packages/backend/test-federation
node ./packages/backend/test-federation/built/daemon.js
"
redis.test:
Expand Down

0 comments on commit 6df3b0d

Please sign in to comment.