IaaS and PaaS with OpenShift, Docker and GearD

An alternative space dedicated to technology and culture at Charleroi.
(Redirigé depuis PaaS with OpenShift)
Aller à la navigation Aller à la recherche
IaaS and PaaS with OpenShift, Docker and Geard
Workshop
internal, IaaS, PaaS, SaaS
internal, IaaS, PaaS, SaaS
Tagline
Unified DevOps infrastructure
Useful information
Description Create a Fedora 20 VM with OpenShift, Docker, Geard and so on.
Date 2014-07-10
Location Wolfplex Hackerspace
Cost free
Who?
Participants Dereckson, Jérôme, Cédric

Goals

  • Become more familiar with this technology.
  • Prepare a more public workshop on the topic.

Part 1 - Theory. Hypervisor and VM installation.

Meeting at Dereckson place 2014-07-08.

Theory

Quick and dirty overview of what the heck is IaaS or PaaS. A lego bricks story.

Hypervisor, VM

We've chosen Fedora 20, as Geard is rather cutting edge software and require RHEL 7+ or Fedora 20+.

  • Jérôme installed a Fedora 20 VM on Xen @ OVH, without regard for the RFC 1178. He intends to use it for testing.
  • Dereckson installed a Fedora 20 VM on VMWare EXSi @ Online. He intends to use it to offer PaaS for Wolfplex members, especially for *.wolfplex.org and internal hackerspace applications.

Both implied a IPFO configuration, and to familiarize with the RedHat rather peculiar networking scripts.

In both case, it's rather annoying the connexion to the hypervisor required a Windows machine. From a RDP connection from Debian or a Mac OS X VM, it weren't the most comfortable setup of the world. This highlights the need to use OpenStack at the hackerspace to manage VMs.


Part 2 - OpenShfit, Docker, Geard installation

We'll meet at Jérôme place 2014-07-10 to go on with installation.


Notes

To install Docker and Geard on CentOS

Docker is installed through docker-io EPEL package, so we've the dependency with geard:

 # yum install http://epel.mirror.nucleus.be//beta/7/x86_64/epel-release-7-0.2.noarch.rpm
 # yum install docker-io geard

To test whether Docker works

  # docker run -t -i centos:centos7 /bin/bash
  bash-4.2#

To compile nginx in CentOS 7 pending package availibility

To install dependences packages, download, compile and install nginx into /usr/local/nginx:

   # yum install openssl-devel zlib-devel pcre-devel unzip
   # su <non privileged user>
   $ wget http://nginx.org/download/nginx-1.7.3.tar.gz
   $ tar xzf nginx-1.7.3.tar.gz
   $ cd nginx-1.7.3
   $ ./configure
   $ make
   $ logout # back to root
   # make install