Skip to content

Commit

Permalink
🛠️ Change: The init criteria endpoint is not called anymore automatic…
Browse files Browse the repository at this point in the history
…ally
  • Loading branch information
lhbelfanti committed Oct 5, 2024
1 parent d44983f commit 10de77d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions Dockerfile_migrations
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ ENV TZ=America/Argentina/Buenos_Aires
CMD ["sh", "-c", " \
echo ' ' && \
echo 'Migrations execution: started' && \
curl -X POST http://ahbcc:${API_PORT}/migrations/run/v1 && \
echo 'Migrations execution: finished' && \
echo ' ' && \
echo 'Criteria initialization: started' && \
curl -X POST http://ahbcc:${API_PORT}/criteria/init/v1 && \
curl -X POST http://ahbcc:${API_PORT}/migrations/run/v1 && \
echo ' ' && \
echo 'Criteria initialization: finished' && \
echo 'Migrations execution: finished' && \
echo ' ' \
"]
6 changes: 3 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ services:
timeout: 10s
retries: 5

db_initializer:
db_migrations:
image: alpine:latest
build:
context: .
dockerfile: Dockerfile_db
container_name: db_initializer
dockerfile: Dockerfile_migrations
container_name: db_migrations
environment:
API_PORT: ${APP_INTERNAL_PORT:-4001}
env_file:
Expand Down

0 comments on commit 10de77d

Please sign in to comment.