Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra: docker-compose repository #556

Merged
merged 1 commit into from
May 16, 2023
Merged

Infra: docker-compose repository #556

merged 1 commit into from
May 16, 2023

Conversation

IceKhan13
Copy link
Member

Summary

Hotfix for local docker-compose setup.

Details and comments

Gateway and repository has the same application name and same table programs. Therefore migrations in both applications were creating the same table in the same database. Migration passed as it was thinking that those table existed already.

This PR is a hotfix to make docker-compose with full, default and jupyter profile work.
Real fix will be implemented within #555

Closes #552

@psschwei
Copy link
Collaborator

I'm still getting the error

Copy link
Collaborator

@akihikokuroda akihikokuroda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IceKhan13
Copy link
Member Author

@psschwei with profile full? or without profile?

@psschwei
Copy link
Collaborator

full

@psschwei
Copy link
Collaborator

This seems to be the error (from the compose logs):

quantum-serverless-postgres-1    | 2023-05-16 21:00:13.539 UTC [39] ERROR:  relation "django_site" does not exist at character 78
quantum-serverless-postgres-1    | 2023-05-16 21:00:13.539 UTC [39] STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" WHERE "django_site"."id" = 1 LIMIT 21

@IceKhan13
Copy link
Member Author

docker rm -f $(docker ps -aq) 
VERSION=0.0.9 docker-compose up --force-recreate

?

@psschwei
Copy link
Collaborator

ok, looks like I may have been caching things... deleting and recreating got it working

@IceKhan13 IceKhan13 merged commit 6ac5114 into main May 16, 2023
@IceKhan13 IceKhan13 deleted the bug/migrations branch May 16, 2023 21:06
@IceKhan13
Copy link
Member Author

Tomorrow we will create proper fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to connect to gateway in v0.0.9 examples
3 participants