illacloud / deploy-illa-manually

Deploy illa utils manually. Docker, docker compose and k8s are all avaliable in this repo.
Apache License 2.0
37 stars 20 forks source link

bug: run-compose-with-official-image.sh fails with fresh install #9

Open c-nv-s opened 1 year ago

c-nv-s commented 1 year ago

when launching using docker-compose script with a fresh virtual machine the installation always fails because the PG_VERSION file in the database directory always gets created and therefore the check for it in the postgres-init.sh script always returns true and therefore the illa database does not get created.

https://github.com/illacloud/deploy-illa-manually/blob/810347a1daa522ae7fea5c1cf60ac7dcf02e50a4/docker-compose/postgres-init.sh#L15

steps to recreate on fresh machine run:

git clone https://github.com/illacloud/deploy-illa-manually
cd deploy-illa-manually/docker-compose
./scripts/run-compose-with-official-image.sh

then you can docker exec -i -t illa-database /bin/bash -c 'su --login postgres' and via psql you can see the illa database doesn't exist.

karminski commented 1 year ago

@c-nv-s Thanks for the feedback, we will check it out as soon as possible.