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

Automatically start a DB on docker via gradle #12124

Merged
merged 2 commits into from
Nov 25, 2023
Merged

Conversation

DanVanAtta
Copy link
Member

@DanVanAtta DanVanAtta commented Nov 24, 2023

Change Summary & Additional Notes

Instead of having to run a shell script to start database before running ./gradlew check, with this update the database will start as a dependency as the check task.

This is done by adding a docker-compose.yml file which starts database. We can run run composeUp from gradle as a dependency to running DB tests, or as a dependency for running the lobby (which requires a DB).


./gradlew testWithDatabase now automatically starts a database, as does running a lobby. There is no longer a need to run the 'start-database.sh' script for gradle tasks to work.

@DanVanAtta DanVanAtta marked this pull request as ready for review November 25, 2023 22:20
@DanVanAtta DanVanAtta changed the title WIP - automatically start docker DB Automatically start a DB on docker via gradle Nov 25, 2023
@DanVanAtta DanVanAtta merged commit 77e3272 into master Nov 25, 2023
1 check passed
@DanVanAtta DanVanAtta deleted the docker-from-gradle branch November 25, 2023 22:22
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.

1 participant