How to create a new-app in Minishift

0 votes

Hi Guys,

I am new in Minishift. I want to create an app in Minishift. How can I do that?

Aug 18, 2020 in DevOps Tools by MD
• 95,460 points
850 views

1 answer to this question.

0 votes

Hi@MD,

You can use oc new-app command in Minishift to create an app. There are two-three ways two create an app. You can create an app using a docker app or Github link or from the local repository. Here I created one app from the local repository.

$ oc new-app openshift/ruby-20-centos7:latest
warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories. 
--> Found Docker image 54ccc57 (3 years old) from Docker Hub for "openshift/ruby-20-centos7:latest"
Ruby 2.0--------
Platform for building and running Ruby 2.0 applications                                                                                               Tags: builder, ruby, ruby20                                                                                                                           * An image stream tag will be created as "ruby-20-centos7:latest" that will track this image
* This image will be deployed in deployment config "ruby-20-centos7"
* Port 8080/tcp will be load balanced by service "ruby-20-centos7"
* Other containers can access this service through the hostname "ruby-20-centos7"
--> Creating resources ...                                                                                                  imagestream.image.openshift.io "ruby-20-centos7" created                                                                deploymentconfig.apps.openshift.io "ruby-20-centos7" created
service "ruby-20-centos7" created
--> Success
Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:                              'oc expose svc/ruby-20-centos7'
Run 'oc status' to view your app.
answered Aug 18, 2020 by akhtar
• 38,260 points

Related Questions In DevOps Tools

0 votes
1 answer

How to create a new project in OpenShift?

Hi@akhtar, A Kubernetes namespace provides a mechanism to ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,460 points
1,271 views
0 votes
1 answer

How to create a secret from literals in Minishift Cluster?

Hi@akhtar, You can create a secret using generic ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,460 points
1,210 views
0 votes
1 answer

How to create a group in Minishift?

Hi@akhtar, To create a group in Minishift, you ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,460 points
626 views
0 votes
1 answer

How to create a service account in Minishift?

Hi@akhtar, Some application requires service account for their ...READ MORE

answered Aug 19, 2020 in DevOps Tools by MD
• 95,460 points
753 views
0 votes
1 answer

How to create a secret from a file in Minishift?

Hi@akhtar, You can create a secret using generic ...READ MORE

answered Aug 19, 2020 in DevOps Tools by MD
• 95,460 points
672 views
0 votes
1 answer

How to create Users with the HTPasswd Identity Provider in Minishift?

Hi@akhtar, You can create a user using htpasswd ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,460 points
876 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,301 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,926 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP