Skip to content

Commit

Permalink
Add .dockerignore
Browse files Browse the repository at this point in the history
Remove .env from dockerignore

Force recreate containers

Debug print env

Debug env

Add app healthcheck
  • Loading branch information
ml-evs committed Aug 19, 2024
1 parent 37f8341 commit 7357427
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .docker/app_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ RUN /node_modules/.bin/vue-cli-service build

COPY ./.docker/app_entrypoint.sh /app/
CMD [ "/bin/bash", "-c", "/app/app_entrypoint.sh" ]

HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 CMD curl --fail http://localhost:8081 || exit 1
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/node_modules
**/cypress
**/.venv
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ jobs:

- name: Set some environment variables for CI containers pre-build
run: |
cp webapp/.env.test_e2e webapp/.env
echo "VUE_APP_API_URL=http://localhost:5001" >> .env
cp webapp/.env.test_e2e .env
echo "PYDATALAB_TESTING=true" >> pydatalab/.env
- name: Load previously built Docker images
Expand All @@ -181,7 +180,7 @@ jobs:
- name: Start services
run: |
# Launch production container profiles and wait for them to come up
docker compose up database api app --no-build -d --wait
docker compose up database api app --no-build --force-recreate -d --wait
- name: Run end-to-end tests
uses: cypress-io/github-action@v6
Expand Down

0 comments on commit 7357427

Please sign in to comment.