BASH and Docker

Submitted by cesarito on Tue, 01/17/2017 - 11:04

The type command allows us to find out if a command is built-in the bash:

cesar@minion3:~$ type ls
ls is aliased to `ls --color=auto'
cesar@minion3:~$ type cd
cd is a shell builtin
cesar@minion3:~$ type which
which is /usr/bin/which
cesar@minion3:~$ type type
type is a shell builtin

This piece of information might be useful when writing Dockerfiles, as we sometime need to know if a sub-shell will be spawned.

SYNTAX HIGHLIGHTING

Submitted by cesarito on Mon, 01/16/2017 - 13:00

Syntax highlighting with Drupal, CKeditor, and Geshi filters

As you may have noticed, we are using a syntax highlighting plugin, to increase code visibility. Installing this piece of software took us some time, there fore we decided to share the procedure we followed.

Everything comes from this website, the missing piece of information is with Drupal 8, you need to create a folder /libraries on the root of the website. And drop in the Geshi library as weel as the codesnippet files.

KUBERNETES

Submitted by cesarito on Fri, 01/13/2017 - 09:22

Key concepts:

  • Pod: a group of containers
  • Labels: labels form identifying pods
  • Kubelet: container agent
  • Proxy:  a Load balancer for pods
  • etcd: a metadata service
  • cAdvisor: provides ressource/usage metrics
  • Replication Controller: manages replication of pods
  • Scheduler: schedles pods in worker nodes

API Server: Kubernetes API server

 

Types of node:

  • master nodes:  self-explanatory
  • minions: worker nodes

pipi

DOCKER BASICS

Submitted by cesarito on Fri, 01/13/2017 - 08:50

Docker's architecture

Based on the following technologies:

  • cgroups: limits the resources a containers can use.

Namespace: this technology hides the PID of the processes running on the host. Fron within the containers it is only possible to see the PID of the processes used by the container.

DOCKER-BUGZILLA

Submitted by cesarito on Thu, 01/12/2017 - 09:42

In this tutorial we will run Bugzilla inside a Docker container and hook it to a Database.

Remarks:

  1. Bugzilla only provides an installation guide for Linux Ubuntu 14.04.
  2. Fedora provide a yum package for Bugzilla but it doesn't seem reliable

 

From a Linux box with Docker on it, we will download the following Docker image from Docker hub: https://hub.docker.com/r/achild/bugzilla/~/dockerfile/