Skip to content

Commit

Permalink
Merge pull request #2158 from balena-os/remove-anon-build-volume-plus…
Browse files Browse the repository at this point in the history
…-misc-docker-test-command-changes

Remove anon build volume plus misc docker test command changes
  • Loading branch information
cywang117 authored Apr 13, 2023
2 parents 66cbe53 + 9431ffc commit 31e80f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ COPY --from=build-prod /usr/src/app/node_modules ./node_modules

COPY entry.sh .

VOLUME /data
HEALTHCHECK --interval=5m --start-period=1m --timeout=30s --retries=3 \
CMD wget http://127.0.0.1:${LISTEN_PORT:-48484}/v1/healthy -O - -q

Expand Down
3 changes: 0 additions & 3 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ services:
environment:
DOCKER_TLS_CERTDIR: ''
command: --tls=false # --debug
tmpfs:
# Prevent dind creating a bunch of anonymous volumes on host
- /var/lib/docker

sut:
# Build the supervisor code for development and testing
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"test:integration:single": "find test/integration -name *.spec.ts | xargs mocha --config test/integration/.mocharc.js",
"test:legacy": "mocha --config test/legacy/.mocharc.js",
"test:node": "npm run test:unit && npm run test:integration && npm run test:legacy",
"test:env": "ARCH=$(./build-utils/detect-arch.sh) docker-compose -f docker-compose.test.yml -f docker-compose.dev.yml up --build; npm run compose:down",
"test:compose": "ARCH=$(./build-utils/detect-arch.sh) docker-compose -f docker-compose.yml -f docker-compose.test.yml up --build --remove-orphans --exit-code-from=sut ; npm run compose:down",
"test:env": "ARCH=$(./build-utils/detect-arch.sh) docker compose -f docker-compose.test.yml -f docker-compose.dev.yml up --build; npm run compose:down",
"test:compose": "ARCH=$(./build-utils/detect-arch.sh) docker compose -f docker-compose.yml -f docker-compose.test.yml up --build --remove-orphans --exit-code-from=sut ; npm run compose:down",
"test": "npm run lint && npm run test:build && npm run test:unit",
"compose:down": "docker-compose -f docker-compose.test.yml down && docker volume rm $(docker volume ls -f name=balena-supervisor -q)",
"compose:down": "docker compose -f docker-compose.test.yml down --volumes",
"prettify": "balena-lint -e ts -e js --fix src/ test/ typings/ build-utils/ webpack.config.js",
"release": "tsc --project tsconfig.release.json && mv build/src/* build",
"sync": "ts-node --files sync/sync.ts",
Expand Down

0 comments on commit 31e80f8

Please sign in to comment.