Skip to content

Commit

Permalink
fix: correção de bug no Makefile - remoção da palavra 'COMPANIES' das…
Browse files Browse the repository at this point in the history
… variaveis POSTGRES (#78)

Correção de bug na variável de ambiente no comando `start-database`.

alterei os nomes das variáveis de ambientes no comando `start-database`
do Makefile de:
```Makefile
-e POSTGRES_COMPANIES_PASSWORD=$(POSTGRES_COMPANIES_PASSWORD) \
-e POSTGRES_COMPANIES_USER=$(POSTGRES_COMPANIES_USER) \
-e POSTGRES_COMPANIES_DB=$(POSTGRES_COMPANIES_DB) \
```
Para:
```
-e POSTGRES_PASSWORD=$(POSTGRES_COMPANIES_PASSWORD) \
-e POSTGRES_USER=$(POSTGRES_COMPANIES_USER) \
-e POSTGRES_DB=$(POSTGRES_COMPANIES_DB) \
```

### Por que da alterações?

Ao executar o comando `run`, o script dava um erro do tipo:
```
wait-for-it: timeout occurred after waiting 90 seconds for localhost:5432
make: *** [Makefile:175: wait-database] Error 124
```
vi que no pr (#76 ) as variáveis de ambientes foram alteradas. E as
variáveis que cria a imagem doo banco de dados também foram alteradas
com a palavra `COMPANIES`, isso impedia que o banco de dados fosse
iniciado.
  • Loading branch information
ogecece authored Dec 11, 2024
2 parents 0fe7619 + 650a84d commit 292bcfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ start-database:
podman run -d --rm -ti \
--name $(DATABASE_CONTAINER_NAME) \
--pod $(POD_NAME) \
-e POSTGRES_COMPANIES_PASSWORD=$(POSTGRES_COMPANIES_PASSWORD) \
-e POSTGRES_COMPANIES_USER=$(POSTGRES_COMPANIES_USER) \
-e POSTGRES_COMPANIES_DB=$(POSTGRES_COMPANIES_DB) \
-e POSTGRES_PASSWORD=$(POSTGRES_COMPANIES_PASSWORD) \
-e POSTGRES_USER=$(POSTGRES_COMPANIES_USER) \
-e POSTGRES_DB=$(POSTGRES_COMPANIES_DB) \
$(POSTGRES_COMPANIES_IMAGE)

wait-database:
Expand Down

0 comments on commit 292bcfb

Please sign in to comment.