magnum/magnum/drivers/common/image/fedora-atomic
Spyros Trigazis fb7980cf7b Update Fedora Atomic element from 23 to 24
Fedora Atomic 24 includes:
kernel-4.6.4-301.fc24.x86_64
docker-1.10.3-24.git29066b4.fc24.x86_64
kubernetes-1.2.0-0.24.git4a3f9c5.fc24.x86_64
atomic-1.10.5-1.gitce09e40.fc24.x86_64
rpm-ostree-2016.4-2.fc24.x86_64
flannel-0.5.5-6.fc24.x86_64
etcd-2.2.5-5.fc24.x86_64
cloud-init-0.7.6-8.20150813bzr1137.fc24.noarch

Change-Id: Iae0d0aeb09239c2d16d683442fe6dbfb09dd1bc5
2016-09-22 10:42:43 -05:00
..
environment.d Update Fedora Atomic element from 23 to 24 2016-09-22 10:42:43 -05:00
finalise.d Update Fedora Atomic element from 23 to 24 2016-09-22 10:42:43 -05:00
README.rst Update Fedora Atomic element from 23 to 24 2016-09-22 10:42:43 -05:00
element-deps Moving feroda atomic image to the bay driver folder. 2016-06-16 11:19:45 -05:00
install_imagebuild_deps.sh Fix file permission in dib elements 2016-06-28 09:10:07 +00:00
package-installs.yaml Moving feroda atomic image to the bay driver folder. 2016-06-16 11:19:45 -05:00
validate_atomic_image.sh Fix file permission in dib elements 2016-06-28 09:10:07 +00:00

README.rst

fedora-atomic

Generates a Fedora Atomic image based on a public deployed tree. This element has been tested under Debian, Ubuntu, CentOS and Fedora operating systems.

Pre-requisites to run diskimage-builder

For diskimage-builder to work, following packages need to be present:

  • python-dev
  • build-essential
  • python-pip
  • kpartx
  • python-lzma
  • qemu-utils
  • yum
  • yum-utils
  • python-yaml

For Debian/Ubuntu systems, use:

apt-get install python-dev build-essential python-pip kpartx python-lzma \
                qemu-utils yum yum-utils python-yaml git curl

For CentOS and Fedora < 22, use:

yum install python-dev build-essential python-pip kpartx python-lzma qemu-utils yum yum-utils python-yaml

For Fedora >= 22, use:

dnf install python-devel @development-tools python-pip kpartx python-backports-lzma @virtualization yum yum-utils python-yaml

How to generate Fedora Atomic image

To generate an atomic image for Fedora 24 these commands can be executed:

git clone https://git.openstack.org/openstack/magnum
git clone https://git.openstack.org/openstack/diskimage-builder.git
git clone https://git.openstack.org/openstack/dib-utils.git

export PATH="${PWD}/dib-utils/bin:$PATH"
export PATH="${PWD}/diskimage-builder/bin:$PATH"

export ELEMENTS_PATH="${PWD}/diskimage-builder/elements"
export ELEMENTS_PATH="${ELEMENTS_PATH}:${PWD}/magnum/magnum/drivers/image/image"

export DIB_RELEASE=24     # this can be switched to the desired version
export DIB_IMAGE_SIZE=2.5 # we need to give a bit more space to loopback device

disk-image-create fedora-atomic -o fedora-atomic

This element can consume already published trees, but you can use it to consume your own generated trees. Documentation about creating own trees can be found at http://developers.redhat.com/blog/2015/01/08/creating-custom-atomic-trees-images-and-installers-part-1/

Environment Variables

To properly reference the tree, the following env vars can be set:

FEDORA_ATOMIC_TREE_URL
Required

Yes

Description

Url for the public fedora-atomic tree to use. It can reference to own published trees.

Default

https://kojipkgs.fedoraproject.org/atomic/24/

FEDORA_ATOMIC_TREE_REF
Required

Yes

Description

Reference of the tree to install.

Default

d9c8b8a31238e857f010c6fdc282f5f611d3c8af3e78caa891f7edb85822771b

You can use the defaults or export your url and reference, like following:

export FEDORA_ATOMIC_TREE_URL="https://kojipkgs.fedoraproject.org/atomic/24/"
export FEDORA_ATOMIC_TREE_REF="$(curl https://kojipkgs.fedoraproject.org/atomic/24/refs/heads/fedora-atomic/f24/x86_64/docker-host)"