konveyor / move2kube

Move2Kube is a command-line tool for automating creation of Infrastructure as code (IaC) artifacts. It has inbuilt support for creating IaC artifacts for replatforming to Kubernetes/Openshift.
https://move2kube.konveyor.io/
Apache License 2.0
385 stars 119 forks source link

Add a S2I working sample #234

Closed ashokponkumar closed 3 years ago

ashokponkumar commented 3 years ago

Is your feature request related to a problem? Please describe. Add a S2I working sample

Describe the solution you'd like Add a S2I working sample

Describe alternatives you've considered Manually try.

ashokponkumar commented 3 years ago

@Akash-Nayak Can you please try converting the language platforms with s2i and check if we have any issues.

Akash-Nayak commented 3 years ago

Yes Sure.

Akash-Nayak commented 3 years ago

While running move2kube-demos git:(main) $ move2kube translate -s samples/language-platforms, in the first QA it asked me to select the services and there was one service named move2kube-demos.

? 1. Select all services that are needed: 
Hints: 
 [The services unselected here will be ignored.]
  [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
> [✓]  java-gradle
  [✓]  java-maven-war
  [✓]  python
  [✓]  move2kube-demos
  [✓]  golang
  [✓]  nodejs
  [✓]  php

golang, java-maven-war, nodejs, php, python, ruby, move2kube-demos, java-gradle-war, java-maven, java-gradle

java-maven and java-gradle-war which were not in the options also appeared in the selected services.

I got few warning messages after I selected S2I as the containerization technique.

? 2. Select all containerization modes that is of interest: 
Hints: 
 [The services which does not support any of the containerization technique you are interested will be ignored.]
 S2I
WARN[0039] Ignoring service java-gradle-war, since it does not support any selected containerization technique. 
WARN[0039] Ignoring service java-gradle, since it does not support any selected containerization technique. 
WARN[0039] Ignoring service java-maven-war, since it does not support any selected containerization technique. 
WARN[0039] Ignoring service move2kube-demos, since it does not support any selected containerization technique. 
? 3. Choose the artifact type: 

After the translation was complete, I deployed the artifacts to the Kubernetes cluster and the below mentioned services are running successfully.

The services are accessible on the following paths:
golang : http://myproject.irlhc12-cf7808d3396a7c1915bd1818afbfb3c0-0000.us-south.containers.appdomain.cloud/golang
java-maven : http://myproject.irlhc12-cf7808d3396a7c1915bd1818afbfb3c0-0000.us-south.containers.appdomain.cloud/java-maven
nodejs : http://myproject.irlhc12-cf7808d3396a7c1915bd1818afbfb3c0-0000.us-south.containers.appdomain.cloud/nodejs
php : http://myproject.irlhc12-cf7808d3396a7c1915bd1818afbfb3c0-0000.us-south.containers.appdomain.cloud/php
python : http://myproject.irlhc12-cf7808d3396a7c1915bd1818afbfb3c0-0000.us-south.containers.appdomain.cloud/python
ruby : http://myproject.irlhc12-cf7808d3396a7c1915bd1818afbfb3c0-0000.us-south.containers.appdomain.cloud/ruby
Screenshot 2020-11-18 at 12 21 50 PM Screenshot 2020-11-18 at 12 22 17 PM Screenshot 2020-11-18 at 12 22 55 PM Screenshot 2020-11-18 at 12 23 28 PM Screenshot 2020-11-18 at 12 24 13 PM Screenshot 2020-11-18 at 12 24 55 PM
Akash-Nayak commented 3 years ago

Added S2I working example using the language-platforms sample usecase - https://github.com/konveyor/move2kube/pull/240