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

Add postgres database dockerfile and run script #495

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

fritzrehde
Copy link

All you have to do is run the shell script, and it should download postgres stuff, sqlx itself, and run the required sqlx commands. Then, it drops you into another shell (I could make this more visual if required), so you don't have to open a new terminal window, and so that the docker container is automatically destroyed again once you exit out of that shell.
I can get the backend to compile this way. However, I haven't tried out actually doing any reads or writes with the database, so tbh not sure if that works (though I don't see why it shouldn't).
One weird thing: once you exit the shell, and the postgres docker container is destroyed, compiling the rust backend still works for some reason, even though the database should be "dead"/unreachable.

@fritzrehde
Copy link
Author

@HellenMelon can you try it now on your machine and see if you can at least compile everything?

@KavikaPalletenne KavikaPalletenne linked an issue Jul 11, 2024 that may be closed by this pull request
@fritzrehde fritzrehde force-pushed the CHAOS-database-dockerfile branch from 97aaae1 to 36c1fc3 Compare July 11, 2024 07:50
@fritzrehde fritzrehde marked this pull request as ready for review July 11, 2024 07:52
@KavikaPalletenne KavikaPalletenne merged commit 16972da into CHAOS-224-KHAOS-rewrite Jul 11, 2024
4 checks passed
@KavikaPalletenne KavikaPalletenne deleted the CHAOS-database-dockerfile branch July 11, 2024 08:00
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.

Containerise dev environment
2 participants