Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application...
-
Upload
lalatendu-mohanty -
Category
Software
-
view
187 -
download
0
Transcript of Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application...
![Page 1: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/1.jpg)
Reproducible development to live applicationsWith Java and Red Hat CDK
Andrew Lee RubingerMiddleware Developer Experience
Lalatendu MohantyRed Hat CDK Team
2nd May 2017
![Page 2: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/2.jpg)
“It Works On My Machine”
![Page 3: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/3.jpg)
Environment Differences Have Got to GoIt ain’t 2007 anymore
● Containers have brought the promise of easily deployable standard runtimes
● But we’re application developers; we don’t *want* to deal with more layers!
![Page 4: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/4.jpg)
The ChallengeMake the container abstractions transparent
● Focus on your business logic● Use a known build and deployment environment● Start with continuous delivery and evolve from there
![Page 5: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/5.jpg)
Getting StartedContinuous Delivery in the cloud, from the start
● Pick a use case you’re looking to fulfill● Select your runtime (from RHOAR - Vert.x, WildFly Swarm, Spring
Boot)● Launch to GitHub and OpenShift Online
![Page 6: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/6.jpg)
Red Hat Container Development Kit (CDK)
![Page 7: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/7.jpg)
Red Hat CDKThe value proposition
● Development environment similar to production environment● Develop/build Microservices, containers● Same user experience across different operating systems
○ Red Hat Enterprise Linux○ Microsoft Windows○ mac OS
![Page 8: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/8.jpg)
Red Hat CDKThe objective
Enable application developers to develop container based applications locally using OpenShift.● OpenShift as the container platform● RHEL for running containers
![Page 9: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/9.jpg)
For the uninitiatedWhat is CDK?
CDK provides a local OpenShift Container Platform (OCP) instance on top of RHEL 7
![Page 10: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/10.jpg)
CDK VersionsLittle bit of past and present
● CDK 2.4 (Generally available (GA))● CDK 3 Beta
![Page 11: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/11.jpg)
CDK Version 2.x
Components
● A RHEL 7 Vagrant Box for supported hypervisor● Vagrant plugins● Vagrant files
Provides
● Openshift container platform instance● Single node Kubernetes setup
![Page 12: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/12.jpg)
CDK Version 3
CDK 3 contains:● Customized RHEL 7 ISO● Minishift binary● OC command line binary
Provides
● Openshift container platform instance
![Page 13: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/13.jpg)
What’s New?In CDK version 3
● Better user experience● Easier installation steps
○ Just one binary for CDK● Support for all native hypervisors
○ KVM, Hyper-V, Xhyve and Virtualbox● Awesomenes!
Note: CDK 3 Beta is available for to use now.
![Page 14: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/14.jpg)
Red Hat OpenShift Application Runtime Demo
![Page 15: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/15.jpg)
launch.openshift.io
![Page 16: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/16.jpg)
Installing launch.openshift.io into MinishiftLaunch new applications, built and deployed by OpenShift, in minutes
● http://appdev.openshift.io/docs/minishift-installation.html
![Page 17: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/17.jpg)
MinishiftUpstream project for CDK
● Replaces All-in-one Origin vagrant and Atomic Developer Bundle● Users have choice between CentOS 7 and Boot2Docker ISO● Documentation :
https://docs.openshift.org/latest/minishift/index.html
*We released the version 1.0.0 today!*
![Page 18: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/18.jpg)
Minishift Quick start
● Install a Minishift supported hypervisor on your operating system● $ minishift start
Or● $ minishift start --vm-driver virtualbox
Note: For Xhyve and KVM you need to install an additional driver
![Page 19: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/19.jpg)
MinishiftFeatures
● User can choose OpenShift Origin version● Addons (i.e. $ minishift addons --help)
○ Anyuid○ admin-user
● oc-env● openshift
![Page 20: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/20.jpg)
Minishift command line
addons Manages Minishift add-ons config Modifies Minishift configuration properties. console Opens or displays the OpenShift Web Console URL. docker-env Sets Docker environment variables. hostfolder Manages host folders for use by the OpenShift cluster. oc-env Sets path of 'oc' binary. openshift Interact with an Openshift Cluster. ssh Log in to or run a command on a Minishift VM with SSH.
![Page 21: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/21.jpg)
Minishift communityUpstream project for CDK
● In Github: Minishift● IRC: #minishift (Freenode)
![Page 22: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/22.jpg)
Under the hoodOf Minishift project
● Forked from Minikube project● Uses “oc cluster up” to provision OpenShift● Uses libmachine to provision the Virtual machine
![Page 23: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/23.jpg)
How do I get access to Red Hat CDK?It is part of no-Cost RHEL developer subscription● Register in https://developers.redhat.com● Download it for free.
![Page 24: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/24.jpg)
Important links● Slides for this presentation: http://bit.ly/2qpuTmL
● https://developers.redhat.com
● CDK 3 Beta blog:
https://developers.redhat.com/blog/2017/02/28/using-red-hat-cont
ainer-development-kit-3-beta/
![Page 25: Reproducible development to live applications with Red Hat CDK and Red Hat OpenShift Application Runtime](https://reader036.fdocuments.in/reader036/viewer/2022062503/5a679edf7f8b9ac0578b5393/html5/thumbnails/25.jpg)
THANK YOUplus.google.com/+RedHat
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHatNews
THANK YOUplus.google.com/+RedHat
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHatNews