k8s-docker-suite-app-murano/DockerStandaloneHost/elements
Dmytro Dovbii 9c78a0a16d Fix path in readme for DIB
Change-Id: I11a00abc8a37cad411b57cbe156a3a2a6a8efef8
2016-09-20 17:06:42 +03:00
..
docker/install.d Fix DIB elements to allow docker use EnvironmentFile 2016-09-16 18:52:04 +03:00
readme.rst Fix path in readme for DIB 2016-09-20 17:06:42 +03:00

Docker Elements

This folders contains necessary DIB elements to build Docker image expected by "Docker Standalone Host" Murano application.

Prerequisites

  1. Install diskimage-builder
sudo pip install diskimage-builder
  1. Install qemu-utils and kpartx

On Ubuntu, Debian:

sudo apt-get install qemu-utils kpartx

On Centos, Fedora:

sudo yum install qemu-utils kpartx

Image building

To build Debian-based image

sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements:${k8s-docker-suite-app-murano}/DockerStandaloneHost/elements \
    DIB_RELEASE=jessie DIB_CLOUD_INIT_DATASOURCES="Ec2, ConfigDrive, OpenStack" disk-image-create vm debian murano-agent-debian \
    docker -o debian8-x64-docker

To build Ubuntu-based image

sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements:${k8s-docker-suite-app-murano}/DockerStandaloneHost/elements disk-image-create \
    vm ubuntu murano-agent docker -o ubuntu14.04-x64-docker

Where ${murano_agent_root} is a path to murano-agent files and ${murano_apps_root} is a path to murano-apps files.