<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Deploy an application :: Flywheel Data Labs - Workshops</title>
    <link>http://localhost:8080/openshift_netapp/2.deploy_app/index.html</link>
    <description>In this lab we’ll deploy an example docker image, pulled from docker hub, into a pod running in OpenShift. We’ll expose a route for clients to access that service via thier web browsers. And we’ll get and describe resources using both the command line and the web console.&#xA;Key Terms Project - A project is a group of services that are related logically Image - We are talking about docker images; read-only and used to create containers ImageStream - An Openshift wrapper around images to make them more portable. Just an image with some extra metadata added on. Pod - One or more docker containers that run together Service - Provides a common DNS name to access a pod (or replicated set of pods) Route - a labeled and DNS mapped network path to a service from outside OpenShift Sonatype Nexus Nexus is a repository manager. It makes it easy to distribute your software. Internally, you configure your build to publish artifacts to Nexus and they then become available to other developers. You get the benefits of having your own ‘central’, and there is no easier way to collaborate.</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 05 May 2020 13:15:09 -0400</lastBuildDate>
    <atom:link href="http://localhost:8080/openshift_netapp/2.deploy_app/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Let&#39;s Login to the Web Console</title>
      <link>http://localhost:8080/openshift_netapp/2.deploy_app/login/index.html</link>
      <pubDate>Tue, 05 May 2020 13:15:09 -0400</pubDate>
      <guid>http://localhost:8080/openshift_netapp/2.deploy_app/login/index.html</guid>
      <description>Use your browser to navigate to https://workshop.ffdlabs.io and login with the user/password provided. Once logged in you should see your available projects - or a button to create a project if none exist already.&#xA;So this is what an empty project looks like First let’s create a new project to do our workshop work in.</description>
    </item>
    <item>
      <title>Let&#39;s deploy an existing docker image</title>
      <link>http://localhost:8080/openshift_netapp/2.deploy_app/deploy/index.html</link>
      <pubDate>Tue, 05 May 2020 13:15:09 -0400</pubDate>
      <guid>http://localhost:8080/openshift_netapp/2.deploy_app/deploy/index.html</guid>
      <description>Open our project&#xA;oc project -workspace Deploy a new application:&#xA;oc new-app sonatype/nexus:oss The output should show something similar to below:&#xA;--&gt; Found container image 2913422 (12 months old) from Docker Hub for &#34;sonatype/nexus:oss&#34; Red Hat Universal Base Image 7 ------------------------------ The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly. Tags: base rhel7 * An image stream tag will be created as &#34;nexus:oss&#34; that will track this image * This image will be deployed in deployment config &#34;nexus&#34; * Port 8081/tcp will be load balanced by service &#34;nexus&#34; * Other containers can access this service through the hostname &#34;nexus&#34; * This image declares volumes and will default to use non-persistent, host-local storage. You can add persistent volumes later by running &#39;oc set volume dc/nexus --add ...&#39; --&gt; Creating resources ... imagestream.image.openshift.io &#34;nexus&#34; created deploymentconfig.apps.openshift.io &#34;nexus&#34; created service &#34;nexus&#34; created --&gt; Success Application is not exposed. You can expose services to the outside world by executing one or more of the commands below: &#39;oc expose svc/nexus&#39; Run &#39;oc status&#39; to view your app.</description>
    </item>
    <item>
      <title>We can see detailed information about our project</title>
      <link>http://localhost:8080/openshift_netapp/2.deploy_app/view/index.html</link>
      <pubDate>Tue, 05 May 2020 13:15:09 -0400</pubDate>
      <guid>http://localhost:8080/openshift_netapp/2.deploy_app/view/index.html</guid>
      <description>We can browse our project details with the command line Try typing the following to see what is available to ‘get’:&#xA;oc get all Now let’s look at what our image stream has in it:&#xA;oc get is oc describe is/nexus Note An image stream can be used to automatically perform an action, such as updating a deployment, when a new image, in our case a new version of the nexus image, is created.</description>
    </item>
    <item>
      <title>Now we need to connect to our application</title>
      <link>http://localhost:8080/openshift_netapp/2.deploy_app/expose/index.html</link>
      <pubDate>Tue, 05 May 2020 13:15:09 -0400</pubDate>
      <guid>http://localhost:8080/openshift_netapp/2.deploy_app/expose/index.html</guid>
      <description>Exposing our application will create a route that we can use to access it.&#xA;In the command line type this:&#xA;oc create route edge nexus --service=nexus Now let’s take a look at our new route by running&#xA;oc describe route nexus We should see something like&#xA;Name: nexus Namespace: kevin-persistence-test-2-workspace Created: 8 minutes ago Labels: app=nexus app.kubernetes.io/component=nexus app.kubernetes.io/instance=nexus Annotations: openshift.io/host.generated=true Requested Host: nexus-kevin-persistence-test-2-workspace.apps.aegis-core.fdlabs.dev exposed on router default (host router-default.apps.aegis-core.fdlabs.dev) 8 minutes ago Path: &lt;none&gt; TLS Termination: edge Insecure Policy: &lt;none&gt; Endpoint Port: 8081-tcp Service: nexus Weight: 100 (100%) Endpoints: 172.31.7.196:8081 Connect to your route by copying and pasting the Requested Host into a new tab in your browser.</description>
    </item>
    <item>
      <title>We&#39;re now ready to use our application</title>
      <link>http://localhost:8080/openshift_netapp/2.deploy_app/connect/index.html</link>
      <pubDate>Tue, 05 May 2020 13:15:09 -0400</pubDate>
      <guid>http://localhost:8080/openshift_netapp/2.deploy_app/connect/index.html</guid>
      <description>Notice that in the web console overview, you now have a URL in the service box. You can get to your app by clicking the route you just exposed.&#xA;Click the link in the service box. You should see: Good work - this error is expected; since the nexus console is on /nexus&#xA;Go to URL: https://nexus--workspace.apps.aegis-core.fdlabs.dev/nexus/ to get the Nexus console.</description>
    </item>
  </channel>
</rss>