You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's it, project has been created. Though it would probably be good to set your current project to this (thought new-project does it automatically as well), such as:
17
17
18
-
$ osc project nodejs
18
+
$ oc project nodejs
19
19
20
20
### The app ###
21
21
22
22
Now let's pull in the app source code from [GitHub repo](https://github.com/openshift/nodejs-ex) (fork if you like)
That should be it, `new-app` will take care of creating the right build configuration, deployment configuration and service definition. Next you'll be able to kick off the build.
29
29
30
30
Note, you can follow along with the web console (located at https://ip-address:8443/console) to see what new resources have been created and watch the progress of the build and deployment.
31
31
32
32
#### build ####
33
33
34
-
$ osc start-build nodejs --follow
34
+
$ oc start-build nodejs --follow
35
35
36
-
You can alternatively leave off `--follow` and use `osc build-logs nodejs-n` where n is the number of the build (output of start-build).
36
+
You can alternatively leave off `--follow` and use `oc build-logs nodejs-n` where n is the number of the build (output of start-build).
37
37
38
-
#### deploy ####
38
+
#### deploy ####
39
39
40
-
happens automatically, to monitor its status either watch the web console or `osc get pods` to see when the pod is up. Another helpful command is
40
+
happens automatically, to monitor its status either watch the web console or `oc get pods` to see when the pod is up. Another helpful command is
41
41
42
-
$ osc status
42
+
$ oc status
43
43
44
44
This will help indicate what IP address the service is running, the default port for it to deploy at is 8080.
45
45
@@ -53,6 +53,12 @@ Run/test our app by simply doing an HTTP GET request
53
53
54
54
Assuming you used the URL of your own forked report, we can easily push changes to that hosted repo and simply repeat the steps above to build (this is obviously just demonstrating the manually kicking off of builds) which will trigger the new built image to be deployed.
55
55
56
+
#### delete ####
57
+
58
+
$ oc delete all --all
59
+
60
+
To remove all the resources created for you application.
61
+
56
62
### Web UI ###
57
63
58
64
To run this example from the Web UI, you can same steps following done on the CLI as defined above by [The project](#the-project). Here's a video showing it in motion:
0 commit comments