DescartesResearch / TeaStore

A micro-service reference test application for model extraction, cloud management, energy efficiency, power prediction, single- and multi-tier auto-scaling
https://se.informatik.uni-wuerzburg.de
Apache License 2.0
118 stars 137 forks source link

Option to build TeaStore as a monolithic (single container) application no longer available #216

Closed ramironagles closed 2 years ago

ramironagles commented 2 years ago

There used to be an option to build TeaStore as a monolithic application (v 1.3.8) but it is not the case anymore. If I load v 1.3.8 the links take me to the current version and there is a reference to the TeaStore wiki where the "Deploy the TeaStore in one or several Java Application Container(s)" is offered but the actual link (https://github.com/DescartesResearch/TeaStore/wiki/Getting-Started#deploy-the-pet-supply-store-in-java-application-containers) is broken and/or misleading (why is it talking about the 'pet-supply-store'?)

SimonEismann commented 2 years ago

Hi ramironagles,

we recently discontinued the teastore-all image, since it became hard to maintain due to its outdated approach.

Do you need the newest TeaStore version? Otherwise, you could try the old teastore-all images: https://hub.docker.com/r/descartesresearch/teastore-all

In the future, we were considering offering a newteastore-all image that uses docker-in-docker to run all services inside a single container as this solution would be much easier to maintain. This was not on the roadmap currently, since we were not aware of anybody using the teastore-all image.

PS: PetSupplyStore was the name we used internally before settling on TeaStore, so the link you found is pretty old :) Where exactly is that link? Then I'll fix that :)

ramironagles commented 2 years ago

Simon,

ramironagles commented 2 years ago

I was wondering if there is any chance for us to clone/fork the source code repository used to build the monolithic teastore-all image (the link points to a docker image but not the source code repo).
We need to introduce some 'bugs' in the application to illustrate some performance-monitoring scenarios and that is why we need the source code so we can modify it and re-build it.

SimonEismann commented 2 years ago

The workshop you are building sounds great, feel free to keep us posted on how it's coming along and if we can help with anything :)

I've been doing some digging, and this seems to be the last commit that contains the teastore-all image: https://github.com/DescartesResearch/TeaStore/tree/b37abaef0a9a4b4ecedc3430ec6ae9b5cc99d8f9

Based on the dockerfile, it seems that this version simply deploys all services on the same tomcat server. Would that already be sufficient for your workshop? Because in many regards this will still be a "distributed" application, where all distributed pieces are running on the same application server, but still communicate via REST calls.

In case you really need a monolithic version, this would require some reworking. Fortunately, at first glance, I think this should not be too much work. It would mostly mean merging the code bases and replacing the REST calls with direct calls to the respective functions. If this is something you would be interested in, we could schedule a call to go over how to approach this.

ramironagles commented 2 years ago

Simon, Thank you so much for looking into this!. I would be very interested in setting up a call to discuss what needs to be done to convert TeaStore in a 100% monolithic application. Please let me know what dates and times work for you this week so we can schedule the call. I am located in the US CST time zone. Thanks in advance.

SimonEismann commented 2 years ago

Sorry for the late reply, things have been a bit busy. Could you reach out via email to schedule a meeting?

My contact information: https://se.informatik.uni-wuerzburg.de/software-engineering-group/staff/simon-eismann/

SimonEismann commented 2 years ago

Closing this since we resolved this offline :)

ramironagles commented 2 years ago

Simon, Thanks a lot for all the help!. Fortunately we managed to accomplish what we were looking for in less than a week using our home-made application. Having said that, TeaStore is still a fundamental component of our workshops and initiatives so I hope we can engage back with you and your team in the event we might need some guidance. Please let me know if you want to be kept in the loop in regards to the ways we are using TeaStore in the future.

Regards Ramiro Nagles [https://www.cisco.com/c/dam/m/en_us/signaturetool/appdynamics/appd_logo_with_bg.png] Ramiro Nagles Solutions Engineer AppDynamics @.**@.> [signature_2298816988][signature_452914695]

From: SimonEismann @.> Date: Tuesday, July 26, 2022 at 5:53 AM To: DescartesResearch/TeaStore @.> Cc: Ramiro Nagles (rnagles) @.>, Author @.> Subject: Re: [DescartesResearch/TeaStore] Option to build TeaStore as a monolithic (single container) application no longer available (Issue #216)

Closing this since we resolved this offline :)

— Reply to this email directly, view it on GitHubhttps://github.com/DescartesResearch/TeaStore/issues/216#issuecomment-1195326719, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKR3FW334JQ7HAIKFXM4VCLVV67QHANCNFSM5XVU6R4A. You are receiving this because you authored the thread.Message ID: @.***>

SimonEismann commented 2 years ago

Great to hear that everything worked out!

Please let me know if you want to be kept in the loop in regards to the ways we are using TeaStore in the future.

Of course, we are always excited to hear how people are using the TeaStore :)