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 Docker Compose files for simplified local testing #2675

Merged
merged 5 commits into from
May 29, 2023

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Apr 15, 2023

Description

This PR adds multiple Docker Compose files that simplify local testing in various deployment constellations.

These make it easier to test database migrations and compatibility with the different RDBMSes in general. Also simplifies testing the impact of performance critical functions with Prometheus metrics.

But to be honest the main motivation to add these files is that I always forget how to set up MSSQL locally.

Addressed Issue

N/A

Additional Details

Not super-sure where to best put these files.

I don't want them to cause confusion as we already have src/main/docker/docker-compose.yml, which is linked on the website, too. As the files in this PR are mainly for local testing, they probably should reside in some sort of hack or dev directory?

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

@nscuro nscuro added this to the 4.9 milestone Apr 15, 2023
These make it easier to test database migrations and compatibility with the different RDBMSes in general. Also simplifies testing the impact of performance critical functions with Prometheus metrics.

But to be honest the main motivation to add these files is that I always forget how to set up MSSQL locally.

Signed-off-by: nscuro <[email protected]>
To make it clear that these Compose files are only meant for dev and testing work. Avoiding confusion with the existing `src/main/docker/docker-compose.yml`, which is also used as quickstart.

Signed-off-by: nscuro <[email protected]>
@nscuro nscuro merged commit 25cf930 into DependencyTrack:master May 29, 2023
@nscuro nscuro deleted the test-compose-files branch May 29, 2023 17:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants