
As a restructure, nothing is changed from the original behaviour and naming despite the file structure changing. The symlinks to build had to be updated generating lots of "deleted" and "new_file". The new structure is: docker/${base_distro}/${type}/${container} base_distro == centos, ubuntu, fedora, etc type == source, binary, rdo type rdo is a symlink to binary for backwards compatibility Two new flags are added to the build-all script to support the ability to support different base distros and a flag to support binary or source containers. There are several added folders that are empty to hold the directory structure for future containers of these types. To use a prefix other than centos-rdo- you can set PREFIX in the toplevel directory .buildconf file Change-Id: Ifc7bac0d827470f506c8b5c004a833da9ce13b90
41 lines
1.3 KiB
Docker
41 lines
1.3 KiB
Docker
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
ADD ./start.sh /start.sh
|
|
|
|
# Install required packages
|
|
# NOTE: these packages (tar especially) can be pruned once converted to
|
|
# installation via RPM: https://bugs.launchpad.net/kolla/+bug/1453926
|
|
RUN yum install -y gcc Cython sqlite-devel mysql-devel libffi-devel tar && yum clean all
|
|
|
|
# use the Barbican Juno version
|
|
# setting this as environment variable also keeps pbr version checking happy
|
|
# TODO: when the Barbican rpm from cloudkeep.io is usable,
|
|
# switch to using that instead
|
|
ENV PBR_VERSION 2014.2
|
|
|
|
# Get and extract the Barbican tar ball
|
|
RUN curl -o /barbican-$PBR_VERSION.tar.gz https://github.com/openstack/barbican/archive/$PBR_VERSION.tar.gz -L
|
|
RUN tar -xzf barbican-$PBR_VERSION.tar.gz
|
|
|
|
# Install Barbican requirements
|
|
RUN pip install -r barbican-$PBR_VERSION/requirements.txt
|
|
RUN pip install MySQL-python
|
|
|
|
# Install Barbican
|
|
RUN cd barbican-$PBR_VERSION && python setup.py install
|
|
|
|
# Configure Barbican
|
|
RUN mkdir -p /etc/barbican
|
|
RUN mkdir -p /var/log/barbican
|
|
RUN cp -r /barbican-$PBR_VERSION/etc/barbican/* /etc/barbican
|
|
|
|
# Instal uwsgi as that is what we will use to run Barbican
|
|
RUN pip install uwsgi
|
|
|
|
# Cleanup files not required anymore
|
|
RUN rm -rf /barbican-$PBR_VERSION
|
|
RUN rm -rf /barbican-$PBR_VERSION.tar.gz
|
|
|
|
CMD ["/start.sh"]
|