Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 1. Understanding Red Hat Container Development Kit
If you are looking to develop containerized applications for Red Hat Enterprise Linux systems, Red Hat Container Development Kit (CDK) can help you by:
- Providing a Red Hat personal container development environment you can install on your own laptop, desktop or server system.
- Including the same container development and run-time tools used to create and deploy containers for large data centers.
- Offering an easy installation method that results in virtual machines created from pre-configured Vagrant boxes and Vagrantfiles running on your local system.
This guide tells you how to install and run the Vagrant-enabled Red Hat Enterprise Linux virtual machines on your chosen system. These virtual machines are configured for Red Hat container development. The guide then describes how you can start using those virtual machines to develop Red Hat Enterprise Linux-based containers using tools such as OpenShift, Eclipse, and various command-line tools.
1.1. Where Can You Run CDK? Link kopierenLink in die Zwischenablage kopiert!
Red Hat Container Development Kit was designed to let you do your container development using the same computer on which you do your other work. CDK can be installed on the following systems:
- Microsoft Windows: You can use a 64-bit version of Microsoft Windows to install CDK. Windows 7 or later is required. Virtualization support must be included and turned on in the BIOS.
- Mac OS X: You can use an Intel-based Apple Mac to install and run CDK. The computer should have at least 4 GB of RAM and be running a recent, 64-bit version of Mac OS X, such as 10.11 (El Capitan). Virtualization support must be included and turned on in the BIOS.
- Red Hat Enterprise Linux and Fedora: The latest version of Red Hat Enterprise Linux 7 or Fedora is recommended for installing CDK. A 64-bit computer with at least 4 GB of RAM and virtualization support (must be turned on in the BIOS) are required.
See the CDK installation procedure for each system for more detailed hardware and software requirements.
1.2. Obtaining and Setting up CDK Link kopierenLink in die Zwischenablage kopiert!
Red Hat CDK software is available from the Red Hat Customer Portal to anyone with a valid Red Hat Enterprise Linux Developer Subscription or Developer Suite. Joining the Red Hat Developers program provides a path to getting the CDK. See the "Using the Red Hat CDK" chapter for details about Red Hat subscriptions and registration.
This guide provides the following instructions for installing and using the Red Hat CDK to begin developing containerized applications:
- Choosing your development system (Windows, Mac, Fedora, or Red Hat Enterprise Linux)
- Making the CDK Vagrant box and Vagrantfiles available on your system
- Starting up the Red Hat Enterprise Linux virtual machine from the Vagrant box with the selected configuration (OpenShift or stand-alone Kubernetes)
- Accessing the Red Hat Enterprise Linux virtual machine from Vagrant and various user interfaces (OpenShift, Eclipse, or command line)
- Using special Vagrant plugins with the CDK to manage subscriptions, set up the development environment and do other activities
The rest of this book describes how to do those things.
1.3. What Is inside CDK Link kopierenLink in die Zwischenablage kopiert!
Once the Red Hat Enterprise Linux 7 virtual machine from the Red Hat CDK is running on your chosen system, you can begin exploring the contents. Some services and tools run automatically when you boot up the virtual machine while others will require some configuration. Here is a list of some of those features:
- OpenShift: A containerized version of OpenShift Enterprise is included in the CDK. OpenShift Enterprise provides developers with a platform for creating, provisioning, managing and scaling container-based applications for cloud environments. Once the OpenShift container is running, you can use a Web console from your browser or work from the command line with the oc command to develop container projects.
- Docker: The Docker project develops the basic container format and the docker command for working with containers that are included in the CDK. The CDK is configured to have the docker daemon start automatically when you boot the Red Hat Enterprise Linux virtual machine. With the docker command, you can build, run, start, stop, investigate and otherwise work with individual containers.
Kubernetes: To orchestrate containers in what are referred to as pods, the CDK comes with all the features needed to run a Kubernetes cluster. Within the CDK, you can use CDK directly with your own container development tools or use the version of Kubernetes that is integrated with OpenShift. When started without OpenShift, Kubernetes is set up to run as an all-in-one Kubernetes master (for managing pods) and node (for running pods).
Kubernetes includes features for replicating pods (to scale up applications on the fly) and services (for interconnecting sets of containers). When you bring up the Vagrantfile for Kubernetes, the VM starts up with all required Kubernetes services running.
- Eclipse: Red Hat CDK includes features that let you connect to it from an instance of the Eclipse Workbench with Linux Tools/Docker Tooling plug-in. This allows CDK users to manage containers from a graphical interface on their host system.
While this document gives you the basics for installing and initially connecting to the features in your Red Hat CDK virtual machine, you should refer to other documentation for more in-depth descriptions for working with the CDK. For example:
- CDK Getting Started Guide: Steps you through your first experiences using CDK.
- Container Development Guide (in development): Provides guidance for more advanced container development. It illustrates the different ways of creating containers to run with Docker, Kubernetes, Nulecule, Atomic and other container run-time environments.
- Getting Started with Containers : Describes the basics of setting up Docker and Kubernetes (all-in-one or cluster) to run containers. It also covers basic storage setup, Kubernetes troubleshooting, starting containers with systemd and running super privileged containers.
1.4. Installation Components Link kopierenLink in die Zwischenablage kopiert!
Regardless of which platform you choose as the workstation for using CDK, you will use Vagrant to start and manage it. There are a few things you should know about Vagrant before you get started:
- Vagrant is an open-source tool for using light-weight, portable, and consistent development environments.
- Virtual machines that are packaged for use with Vagrant are called boxes.
- CDK is delivered with two different Vagrantfiles to configure CDK software components in different ways.
While this guide contains separate chapters for installing on Microsoft Windows, Mac OS X, and Linux systems, some of the components and steps are the same for all installation types. For example, the Red Hat Developer Tools ZIP file you download includes Vagrantfiles that are used on all platforms. Likewise, Vagrant boxes you use are tied to the hypervisor (such as VirtualBox or Libvirt), rather than the operating system. The installation and use of Vagrant plugins is also the same on all operating systems.
Now that you understand the basics of what is inside CDK, choose from one of the next chapters to learn how to obtain CDK and install it on a Microsoft Windows, Mac OS X, Red Hat Enterprise Linux, or Fedora system.