📜 ⬆️ ⬇️

We start Tomcat on OpenShift

image

Having read article on Habré about OpenShift ,
I immediately wanted to make friends with this platform. Still, a free remote computer with 512MB of RAM and 1GB of space will not be superfluous on the farm. ;) Especially since you can run not only the web server platform offered by the platform itself, but also something of your own. The choice fell on Tomcat with a small personal project.

Next, I will describe the algorithm for implementing this idea:


')

1. Get ssh access




2. What do they give?


At the beginning, I will say a few words about the remote machine we received:


3. Start Tomcat


The main nuances of copying the server to a remote machine are described in this wonderful article . Therefore, we will assume that we have already copied Tomcat to the app-root / data / tomcat folder, configured ip and all the ports in the app-root / data / tomcat / conf / server.xml file (ip was received from $ OPENSHIFT_INTERNAL_IP, and the port values ​​were set above 15000, except for port 8080) and now they are ready to start their server, but we are hampered by the already running ruby-stub on port 8080. And plus, we still have no possibility of debugging the server through port 8787. We will solve these difficulties:


4. Results


The Tomcat startup algorithm on OpenShift was rather dreary, but what you can’t do for the sake of a freebie. Have a nice work!

Source: https://habr.com/ru/post/145499/


All Articles