e99577fdc8
We have a debian 8 image for a long time, which can be successfully used by docker standalone host to run dockerized apps, but we still don't use it. This commit deletes hardcode and adds image field to ui with filter by type `linux.docker`. Change-Id: Ie3d9d454cd98f651833b28690d33d55b404dc13d
52 lines
1.2 KiB
ReStructuredText
52 lines
1.2 KiB
ReStructuredText
Docker Elements
|
|
===============
|
|
|
|
This folders contains necessary DIB elements to build Docker image
|
|
expected by "Docker Standalone Host" Murano application.
|
|
|
|
|
|
Prerequisites
|
|
-------------
|
|
|
|
1. Install diskimage-builder
|
|
|
|
.. sourcecode:: bash
|
|
|
|
sudo pip install diskimage-builder
|
|
|
|
2. Install qemu-utils and kpartx
|
|
|
|
|
|
On Ubuntu, Debian:
|
|
|
|
.. sourcecode:: bash
|
|
|
|
sudo apt-get install qemu-utils kpartx
|
|
|
|
On Centos, Fedora:
|
|
|
|
.. sourcecode:: bash
|
|
|
|
sudo yum install qemu-utils kpartx
|
|
|
|
|
|
Image building
|
|
--------------
|
|
|
|
To build Debian-based image
|
|
|
|
.. sourcecode:: bash
|
|
|
|
sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements:${murano_apps_root}/Docker/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
|
|
|
|
.. sourcecode:: bash
|
|
|
|
sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements:${murano_apps_root}/Docker/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. |