Skip to content

Commit

Permalink
Merge pull request #20 from BouyguesTelecom/improve/dx-docker-compose
Browse files Browse the repository at this point in the history
add debug log
  • Loading branch information
AmelieLoulergue authored Dec 1, 2024
2 parents 73701dc + 57e7525 commit 61d1a28
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
IMAGE_NAME: bouyguestelecom/tada
CHART_PATH: ./opensource

jobs:
tests:
Expand All @@ -21,7 +20,7 @@ jobs:
- name: Run docker-compose
uses: hoverkraft-tech/[email protected]
with:
compose-file: "./docker-compose.yml"
compose-file: "./docker-compose.dev.yml"
- name: Copy tmp/images for tests
run: |
cp -r local/images /tmp/images
Expand Down
19 changes: 0 additions & 19 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,25 +121,6 @@ services:
- media_network
depends_on:
- images-provider
job:
build:
context: src/
dockerfile: Dockerfile.dev
ports:
- 3006:3006
networks:
- media_network
depends_on:
images-provider:
condition: service_healthy
environment:
<<: *default-environment
IMAGE_SERVICE: http://images-provider:3001
API_SERVICE: http://images-provider:3001
API_PREFIX: /palpatine
DEV_ENV: true
CATALOG_ROUTE: '/catalog'
GET_ROUTE: '/assets/media/'

volumes:
pv-minio:
Expand Down
1 change: 1 addition & 0 deletions src/api/middleware/validators/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const sendResponse = async ({ res, status, data = null, errors = null, pu
if (purge !== 'false' && process.env.DELEGATED_STORAGE_METHOD !== 'STANDALONE') {
await purgeData(purge === 'catalog' ? 'catalog' : data);
}
console.debug('Sending response:', data, errors)
return res.status(status).json({ data, errors }).end();
};

Expand Down

0 comments on commit 61d1a28

Please sign in to comment.