Closed ksg1998 closed 4 years ago
Can you please provide information about what kind of problem occurs? Does it not build or do you experience some kind of runtime problem? In what environment are you running the TeaStore? Docker, Kubernetes or Tomcat?
We are running TeaStore on docker. For example the front-page teastore logo gets scaled to 600 x 437 by default. So we wanted to change this and tried to set a default value to scalingFactor parameter in ImageScaler.java. After doing this we ran mvn clean install to rebuild teastore. While doing this the build stops at the Image Provider throwing an error. It looks like some maven error not sure what it is.
Hey @ksg1998, It seems that something is amiss int the ImageScaler file. Could you post the content of your modfied version?
Does a clean checkout of the master branch build?
I haven't added much and yes without the changes that we made it works properly and the build is successful.
As it can be seen in the above screenshot just adding 1 to the scalingFactor. It might be an error from our side. If this isnt't the right place to change the scaling factor wanted to know how it could be done. Without the above change it builds perfectly as seen below.
So I am not sure if this is actually the problem, but my first guess is that the checkstyle complains about the indentation of the scalingFactor = scalingFactor + 1; line. Could you try if this fixes the issue?
When it comes to if this is actually what you want to do, this I'll forward this question to @NSchmittUniWue as he knows more about the image provider.
Thanks a lot @SimonEismann @kasokz will check it out.
Closing due to inactivity, feel free to reopen if the issue still persists :-)
In ImageScaler.java there's a parameter called scaling factor. We are trying to re-scale the size of images and monitor how teastore performs but when we tried changing the value of the scaling factor and re-building teastore there's some problem.