Add openSUSE Leap 15 VBMC image
Co-Authored-By: Stephanie Miller <stephane@alum.mit.edu> Change-Id: I979fc15bde85f30d23d3c2a5ad720f90f7afa7b3
This commit is contained in:
parent
8468a18ae3
commit
cd8e356a40
@ -5,8 +5,11 @@ vBMC container image
|
|||||||
This container builds a small image with kubectl and some other
|
This container builds a small image with kubectl and some other
|
||||||
utilities for use in both the ironic checks and development.
|
utilities for use in both the ironic checks and development.
|
||||||
|
|
||||||
Manual build for CentOS 7
|
Manual build
|
||||||
=========================
|
============
|
||||||
|
|
||||||
|
CentOS 7
|
||||||
|
--------
|
||||||
|
|
||||||
Here are the instructions for building CentOS 7 vBMC image:
|
Here are the instructions for building CentOS 7 vBMC image:
|
||||||
|
|
||||||
@ -19,3 +22,21 @@ Alternatively, this step can be performed by running the script directly:
|
|||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
./vbmc/build.sh
|
./vbmc/build.sh
|
||||||
|
|
||||||
|
openSUSE Leap 15
|
||||||
|
----------------
|
||||||
|
|
||||||
|
To build an openSUSE leap 15 image, you can export varibles before
|
||||||
|
running the build script:
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
DISTRO=suse_15 ./vbmc/build.sh
|
||||||
|
|
||||||
|
Should you want to have a specific version of vbmc for a different
|
||||||
|
openSUSE base image, you can use the extra arguments for the
|
||||||
|
build process, for example:
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
DISTRO=suse_15 extra_build_args="--build-args PROJECT_REF=<SHA> --build-args FROM=<localimage>" ./vbmc/build.sh
|
||||||
|
33
vbmc/Dockerfile.suse_15
Normal file
33
vbmc/Dockerfile.suse_15
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
ARG FROM=docker.io/opensuse/leap:15
|
||||||
|
FROM ${FROM}
|
||||||
|
LABEL maintainers=stephane@alum.mit.edu
|
||||||
|
ARG PROJECT_REF=master
|
||||||
|
RUN set -ex ;\
|
||||||
|
zypper update -y ;\
|
||||||
|
zypper install -y --type pattern devel_basis ;\
|
||||||
|
zypper install -y \
|
||||||
|
ceph-common \
|
||||||
|
git \
|
||||||
|
libguestfs \
|
||||||
|
libvirt \
|
||||||
|
libvirt-daemon \
|
||||||
|
libvirt-daemon-config-nwfilter \
|
||||||
|
libvirt-daemon-driver-lxc \
|
||||||
|
libvirt-daemon-driver-nwfilter \
|
||||||
|
libvirt-devel \
|
||||||
|
openvswitch \
|
||||||
|
python-devel \
|
||||||
|
python-xml \
|
||||||
|
qemu-kvm ;\
|
||||||
|
zypper clean ;\
|
||||||
|
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py ;\
|
||||||
|
python /tmp/get-pip.py ;\
|
||||||
|
rm -f /tmp/get-pip.py ;\
|
||||||
|
TMP_DIR=$(mktemp -d) ;\
|
||||||
|
git clone https://github.com/openstack/virtualbmc ${TMP_DIR} ;\
|
||||||
|
cd ${TMP_DIR} && git checkout ${PROJECT_REF} && cd - ;\
|
||||||
|
pip install -U ${TMP_DIR} ;\
|
||||||
|
rm -rf ${TMP_DIR} ;\
|
||||||
|
useradd --user-group --create-home --home-dir /var/lib/nova nova ;\
|
||||||
|
chmod 755 /var/lib/nova ;\
|
||||||
|
usermod -a -G qemu nova
|
@ -20,16 +20,16 @@
|
|||||||
# Alternatively, we can add a deploy using vbmc, and reuse
|
# Alternatively, we can add a deploy using vbmc, and reuse
|
||||||
# the deploy's functional testing
|
# the deploy's functional testing
|
||||||
- openstack-helm-images-vbmc-centos_7
|
- openstack-helm-images-vbmc-centos_7
|
||||||
|
- openstack-helm-images-vbmc-suse_15
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-helm-images-vbmc-centos_7
|
- openstack-helm-images-vbmc-centos_7
|
||||||
|
- openstack-helm-images-vbmc-suse_15
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: openstack-helm-images-vbmc
|
name: openstack-helm-images-vbmc
|
||||||
parent: openstack-helm-images-base
|
parent: openstack-helm-images-base
|
||||||
abstract: true
|
abstract: true
|
||||||
files:
|
|
||||||
- ^vbmc/.*
|
|
||||||
vars:
|
vars:
|
||||||
image_path: vbmc
|
image_path: vbmc
|
||||||
|
|
||||||
@ -46,10 +46,12 @@
|
|||||||
# This is an example of how to re-use the jobs for
|
# This is an example of how to re-use the jobs for
|
||||||
# multi-distro. The image would get built with a
|
# multi-distro. The image would get built with a
|
||||||
# different tag, based on distro argument.
|
# different tag, based on distro argument.
|
||||||
#- job:
|
- job:
|
||||||
# name: openstack-helm-images-vbmc-ubuntu_bionic
|
name: openstack-helm-images-vbmc-suse_15
|
||||||
# parent: openstack-helm-images-vbmc
|
parent: openstack-helm-images-vbmc
|
||||||
# files:
|
files:
|
||||||
# - ^vbmc/Dockerfile.ubuntu_bionic$
|
- ^vbmc/Dockerfile.suse_15
|
||||||
# vars:
|
- ^vbmc/build.sh
|
||||||
# distro: "ubuntu_bionic"
|
- ^zuul.d/vbmc.yaml
|
||||||
|
vars:
|
||||||
|
distro: "suse_15"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user