Skip to content

Latest commit

 

History

History
128 lines (80 loc) · 7.71 KB

cdk-get-started-combined.adoc

File metadata and controls

128 lines (80 loc) · 7.71 KB

Step1 Title

Download Container Development Kit

Step2 Title

Download additional components

Step3 Title

Install Container Development Kit

Step4 Title

Build your first container

Step1 Content

In this step, you download the first of two Red Container Development Kit (CDK) files. For the download, you will need to register with developers.redhat.com. After you register as a developer, you will be given a subscription for Red Hat Enterprise Linux Developer Suite, which will give you access to the CDK. Red Hat Enterprise Linux Server, and additional development tools are included in Red Hat Enterprise Linux Developer Suite.

Download the #{site.download_manager_base_url}/download-manager/file/cdk-2.0.0-beta5.zip[cdk-2.0.0-beta5.zip].

Note: Later in this guide, you will need the Red Hat username and password you create during registration for accessing Red Hat sites.

Step2 Content

The CDK delivers the latest container tools in a Red Hat Enterprise Linux virtual machine (VM). To use the CDK you will need:

  1. A virtualization platform: VirtualBox, VMware, or Linux KVM/libvirt

  2. Vagrant, an open source tool for creating and distributing portable development environments.

  3. The CDK Red Hat Enterprise Linux Vagrant box that matches your virtualization platform.

  4. Cygwin (Microsoft Windows only) to provide ssh and rsync.

Install a virtualization platform (hypervisor)

First, download and install a virtualization platform:

Note: If you are using Microsoft Windows, Apple Mac OS X, or a Linux distribution other than Red Hat, Fedora or CentOS, VirtualBox is recommended.

Install Vagrant

Next, download Vagrant. All of the VM configuration details on your development system will be handled for you by Vagrant.

NOTE: We recommend you use Vagrant version 1.7.4, or a version later than 1.8.1. Vagrant releases 1.8.0 and 1.8.1 should be avoided due to some bugs that impact proper operation of the CDK.

If you are using:

For other Linux distributions, install Vagrant using the packages included with your distribution if it includes a recent version. Alternatively, download a .deb or .rpm package from vagrantup.com.

Install Cygwin on Microsoft Windows

To provide ssh and rsync on Microsoft Windows, install Cygwin by downloading and running:

Download Red Hat Enterprise Linux CDK Vagrant Box

Next, download the Red Hat Enterprise Linux CDK Vagrant box that matches your virtualization platform:

  • #{site.download_manager_base_url}/download-manager/file/rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-virtualbox.box[Red Hat Enterprise Linux 7.2 Vagrant box for VirtualBox, window='_blank']

  • #{site.download_manager_base_url}/download-manager/file/rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-vmware-fusion.box[Red Hat Enterprise Linux 7.2 Vagrant box for VMware, window='_blank']

  • #{site.download_manager_base_url}/download-manager/file/rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-libvirt.box[Red Hat Enterprise Linux 7.2 Vagrant box for KVM/libvirt, window='_blank']

Step4 Content

Select your development technology and then build "Hello, World" in a container:

Nodejs Tab

Node.js 0.10 Node.js® is an event-driven I/O server-side JavaScript runtime that is lightweight and efficient.

#{site.base_url}/products/cdk/get-started-cdk2-nodejs/[Get Started]

PHP Tab

PHP 5.6 PHP is a widely-used, open source, general-purpose scripting language that is especially suited for web development. PHP can be embedded into HTML.

#{site.base_url}/products/cdk/get-started-cdk2-php/[Get Started]

Python Tab

Python 3.4 Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its built-in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development and integration.

#{site.base_url}/products/cdk/get-started-cdk2-python/[Get Started]

Ruby Tab

Ruby 2.2 Ruby is a dynamic, reflective, object-oriented, general-purpose programming language.

#{site.base_url}/products/cdk/get-started-cdk2-ruby/[Get Started]