 Hey everyone, this is Grant your friendly neighborhood OpenShift team member in today's video I want to show you how to install Red Hat code ready workspaces on the Red Hat OpenShift container platform Version 3.11. So I am going to go ahead and log in to my OpenShift platform And then once I'm authenticated you can see that I do not have a code ready Project over here But the first thing I want to do is actually download the code ready workspaces so to do that I'm going to go to access.redhat.com and I am going to authenticate Put in my username and password and then once I have been authenticated I'm going to click on product and services and then click on view all products and Right here in the middle of the screen. We can see Red Hat code ready workspaces and I just want to click the download latest and I'm going to save that To my local machine and that's going to be a tar file which I will then need to extract So I'll go ahead and save this and then we'll go over to our terminal And I've created a directory called code ready here with the workspace tar file in there So I am just going to extract the workspace tar that created a code ready workspaces operator directory for me now I should already be logged in here and We can do OC get projects and it's going to list all of the projects on my OpenShift container platform Let's clear the screen and then let's run deploy and this will give you some information You can specify For example a Specific project if you don't specify a project name It's going to use code ready as the default you can also enable OAuth and this will allow Anyone on your OpenShift container platform cluster to log in with their OAuth credentials so I'm just going to run deploy and I am just going to say dash dash deploy and I'm going to actually use all of the defaults and This is going to Authenticate to my OpenShift container platform as you can see on console.techdope.io And it says that a namespace code ready was not found. So it's actually going to create That namespace or project for me and install Red Hat code ready workspaces inside of that And this takes just a couple minutes to complete The deployment has completed you can see that it took three minutes and 13 seconds to complete and For those of you who may watch my YouTube videos You'll know perhaps that I created a video for installing Red Hat code ready workspaces on the OpenShift online pro tier last week And hopefully you have noticed that the process is exactly the same that highlights one of the benefits of OpenShift when you're thinking about hybrid cloud deployments Regardless of where you have OpenShift running the process is exactly the same whether it's in the public cloud public hosted cloud OpenShift dedicated or in your own data center You just have a few other options when you are running your own OpenShift cluster Such as the OAuth integration. All right So let's head back over to the OpenShift console and we can see that we now have a code ready project and Code ready consists of the chase server key cloak for authentication and a postgres database So the first thing you'll want to do probably is login to key cloak and The default password is admin admin And you'll want to change that password Pretty quickly so you can go into login client registration. You can turn off client registration Registration if you look under users, you can view different users But let's go ahead and register a new account on code ready workspaces because I did not enable Authentic or OAuth authentication So I'm just gonna register a new account and I'll put in my information here grant ship Lee G ship Lee at redhat.com And I want my username to be G ship Lee and I'll put in a password and I am going to register and This will create an account for me if we go back over to key cloak and click on users and let's refresh this View all users. We should see that we have a G ship Lee account now So if we go over to We want to disable the registration Now that I have created my account So if you go to realm settings and then user registrations Just turn that off and then click on save and also don't forget to change that admin password as well So if I go back to my other tab, this is code ready workspaces. So let's just try one out here real quick Let's try a Java 1.8 stack. Let's set our machine up to you know Six gigs. This is running on my own server and I know my open shift server has a hundred and twenty eight gigs of memory. So let's just create and open that project Okay, our code ready workspaces environment has been set up our workspace has been set up here It is so let's go ahead and import a project into our workspace and we're going to do this from get hub So me run over to my get hub account real quick get hub comm slash G ship Lee and find a quick repository that we can load in to Red Hat code ready workspaces. I'll just grab this one Go back over to my Code ready workspaces put that in My Okay import that and so now that's going to import the Get hub repository into our code ready workspaces And we can specify that this is a maven based project and save that And now we can expand our source code and start coding And if we just look at the controller here, this is just a little simple one that I've been working on So let's go ahead and go over to our terminal and do a ls in this directory CD into that directory and do a maven clean package and that's going to actually build the Application from inside a code ready workspaces. So the way I actually use code ready workspaces as I click this Yellow button in the top left hand corner to get rid of the workspace information And then I just code in this throughout the day and use the integrated terminal We can see that build took 18 seconds. Let's see if we run it a second time all those Downloads should be cached at this point. So your subsequent builds will be much faster 2.9 seconds. So then if you want to actually run this You can do Java dash jar just like you were running on your local machine and Run the jar file application And if I typed it right, you need Java dash jar and then she'll actually start up the spring boot Application running inside of red hat code ready workspaces. So that's pretty awesome So how do you actually get to the spring boot application? So you click this plus sign you click on servers and this will give you the routes for everything That you have running. So if I click that, it's gonna give me an error message because the application is not actually Doing anything right now, but if we go back to our OpenShift container platform console You can see that my workspace is running as a pod inside of OpenShift and right now it is consuming a total of 990 megs of memory and so as you remember I created that to go up to 6 gigs So as I'm compiling and doing things it can actually consume More resources if needed. All right, that's it for this video. I hope you enjoy using red hat code ready workspaces