Skip to content

Commit

Permalink
tmp: run ci
Browse files Browse the repository at this point in the history
  • Loading branch information
snamiki1212 committed Dec 28, 2023
1 parent 855f3a7 commit 2bf5e91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
COPY . .

# Define Healthcheck fot the container
HEALTHCHECK --interval=5s --timeout=5s --start-period=5s --retries=20 CMD [ "curl","http://0.0.0.0:8080/api/healthcheck" ]
# HEALTHCHECK --interval=5s --timeout=5s --start-period=5s --retries=20 CMD [ "curl","http://0.0.0.0:8080/api/healthcheck" ]

# Upgrade the system and install dependencies for PostgreSQL
RUN apt-get update && \
Expand Down
14 changes: 7 additions & 7 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ services:
container_name: app
build: .
command: 'bash -c "diesel setup && cargo watch --exec run"'
healthcheck:
test: ["CMD", "curl", "http://app:8080/api/healthcheck"]
interval: 5s
timeout: 5s
retries: 100
start_period: 30s
# healthcheck:
# test: ["CMD", "curl", "http://app:8080/api/healthcheck"]
# interval: 5s
# timeout: 5s
# retries: 100
# start_period: 30s
volumes:
- .:/app
depends_on:
Expand Down Expand Up @@ -40,7 +40,7 @@ services:
dockerfile: "Dockerfile_tester"
environment:
- APIURL=http://app:8080/api
command: sh ./e2e/run-api-tests.sh
command: sleep 100 && sh ./e2e/run-api-tests.sh
volumes:
- .:/app
depends_on:
Expand Down

0 comments on commit 2bf5e91

Please sign in to comment.