How To Install And Use Atomic Developer Bundle On CentOS 7

atomic bundle

The Atomic Developer Bundle (ADB) is a prepackaged development environment filled with production-grade, pre-configured tools, that makes container developers’ lives easier. The ADB supports the development of multi-container applications against different technologies and orchestrators while providing a path that promotes best practices. It provides a container development ecosystem that ensures developers are able to work with Linux containers even if their base operating system does not support it. It also offers a quick and easy way to setup multi-container applications that take advantage of management and/or orchestration solutions, such as OpenShift or Kubernetes. The ADB supports Nulecule and Atomic App. These projects provide a structure for packaging, distributing, and deploying multi-container applications.

The ADB is built as part of Project Atomic, which integrates the tools and patterns of container-based application and service deployment with trusted operating system platforms to deliver an end-to-end hosting architecture that’s modern, reliable, and secure.

Installing the Atomic Developer Bundle on CentOS 7:

In this article we are going to show you the detailed installation instructions of ADB CentOS 7 server using VirtualBox and Vagrant installation setup.

1) Installing VirtualBox on CentOS 7:

There are two different virtualization providers supported on Linux, that is VirtualBox and libvirt. Both will work equally well in their default configuration.

Let’s see how are going to setup VirtualBox on CentOS 7 using simple below commands.
Open your command line terminal and switch user to root then run below commands to install latest EPEL release and ‘dkms’ package as shown below.

#yum -y install epel-release
#yum -y install dkms

vbox dkms

Now run the following commands to download and install Virtual Box repository after moving to ‘yum.reps.d’ directory as shown.

#curl -O http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
[cc]#mv virtualbox.repo /etc/yum.repos.d/
#yum -y install VirtualBox-4.3

installing virtulbox

Once the installation are complete, then run the command below to initialize Virtualbox kernel module.

#/etc/init.d/vboxdrv setup

2) Installing Vagrant on CentOS 7:

Vagrant is computer software that creates and configures virtual development environments. It can be seen as a higher-level wrapper around virtualization software such as VirtualBox, VMware, KVM and Linux Containers (LXC), and around configuration management software such as Ansible, Chef, Salt, and Puppet.

Vagrant packages are not available directly in CentOS 7 server. However, they are available through official CentOS Software Collections builds. You can install it using its ‘rpm’ package. Open the Vagrant Official Dowload page to download the latest version of the vagrant or use following Command to install the latest available vagrant package.

#wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.rpm

Then use the following command to install rpm vagrant package

#rpm -ivh vagrant_1.8.1_x86_64.rpm

Now we have successfully installed vagrant version on centos 7.

3) Installing the vagrant-service-manager Vagrant plugin:

After installing the Vagrant,you can install vagrant-service-manager plugin by using below command.

#vagrant plugin install vagrant-service-manager

vagrant plugin install

4) Downloading the ADB:

There are two ways to download the ADB. The one is using the Vagrantfiles Initiated Download. The ADB project provides customized Vagrantfiles, which will download the ADB and automatically set up provider specific container development environments.

To download ADB and set up a provider specific container development environment, run the commands to create a new directory and then download the required ‘vagrantfile’ and use it with host-based tools or via vagrant ssh as shown.

#mkdir VagrantBox
#cd VagrantBox

Use below command to get Docker Vagrantfile.

#curl -sL https://raw.githubusercontent.com/projectatomic/adb-atomic-developer-bundle/master/components/centos/centos-docker-base-setup/Vagrantfile > Vagrantfile

For Apache Mesos Marathon Vagrantfile use command.

#curl -sL https://raw.githubusercontent.com/projectatomic/adb-atomic-developer-bundle/master/components/centos/centos-mesos-marathon-singlenode-setup/Vagrantfile > Vagrantfile

To start the ADB use below command.

#vagrant up

This will download the ADB and set it up to work with Docker, for use with host-based tools or via vagrant ssh.

vagrant up

Downloading the Vagrant Box Image:

You can also manually download the vagrant box from cloud.centos.org using your web browser or curl command as shown below to get the libvirt image.

$ wget http://cloud.centos.org/centos/7/atomic/images/AtomicDeveloperBundle-1.5.0-CentOS7-LibVirt.box

Once the image is downloaded, you can add it to vagrant using below command.

#vagrant box add adb AtomicDeveloperBundle-1.5.0-CentOS7-LibVirt.box

vagarant-box-image

Atomic Developer Bundle installation is complete, if you wish to destroy any data you have stored in the Vagrant box then use below command.

#vagrant destroy

You will not be able to restart this instance and will have to create a new one using vagrant up.

Conclusion:

In this article we have successfully installed and setup Atomic Developer Bundle using VirtualBox and Vagrant on CentOS 7. The ADB is delivered as a Vagrant box for various providers currently libvirt and VirtualBox . The boxes are built using the CentOS powered Community Build System which differ from existing Vagrant boxes for CentOS as they have specific build requirements that are not enabled in those boxes. Let’s start using ADB on CentOS 7 and explore its awesome features.