make the ojp-server docker image leaner#316
make the ojp-server docker image leaner#316matheusandre1 wants to merge 1 commit intoOpen-J-Proxy:mainfrom
Conversation
|
@matheusandre1 have you run the integration tests against the new image? Would be great if you could run all integration tests against the old image and then against the new one to compare. |
|
eclipse-temurin:22-jre (Standard): 494.67 MB |
|
@matheusandre1 have you run the integration tests against the docker image? Currently, in the CI workflow we don't run tests against the docker image, we run OJP Server as an executable JAR. That is why I am insisting on testing it locally. |
|
Yes, I rotated and built an image on top. |
|
@matheusandre1 , the integration tests I'm referring to are the ones that are in ojp-jdbc and run against the real databases. there's a video explaining it here: https://youtu.be/KFR-DGmc2A0?si=wxZe-PcK5QP0wjoM |
|
I'll check it out, thanks for reminding me about that, I believe the CI is costly for you. |
@matheusandre1 it's not about the cost, it is that the CI does not use docker images, it runs an executable JAR only at the moment. |
|
I'll do that tonight, I'm having trouble testing it, I'm using ACT and it's gotten worse lol |
|
|
@matheusandre1 any progress on this? |
|
I realized I had to put together a script to shoot it; I tried to record a video, but it went over 10 minutes. |
|
Can you grab the branch and check it so I'm not messing anything up? |
|
@matheusandre1 you need to create the new docker image locally and run it, then you need to run first the H2 tests on ojp-jdbc-driver module This will quickly show you issues. That is how we run tests in the main CI workflow. Then you need to run each database on docker, for example postgres and run the postgres integration tests Once you get the first one done you'll fly by as per it is just more of the same for the other DBs. Leave DB2 and SQL Server for last as per they need extra setup (creating user, giving permissions), you can find how to run each database here: https://github.com/Open-J-Proxy/ojp/blob/main/documents/code-contributions/setup_and_testing_ojp_source.md We do need to test all databases locally before we can merge this change. |





Closes #49 , This reduces it, but is that all there is to it?