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
915 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,422 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,364 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
752 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
861 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
803 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
928 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,574 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,061 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