Skip to content
Snippets Groups Projects
Commit ddec5767 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Remove barbican"

parents b214523d 102c8332
No related branches found
No related tags found
No related merge requests found
Showing
with 1 addition and 122 deletions
[barbican]
type = url
location = http://tarballs.openstack.org/barbican/barbican-master.tar.gz
dest_filename = barbican.tar
[barbican-base]
type = url
location = http://tarballs.openstack.org/barbican/barbican-master.tar.gz
dest_filename = barbican.tar
[ceilometer-base]
type = url
location = http://tarballs.openstack.org/ceilometer/ceilometer-master.tar.gz
......
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY ./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"]
../../../../tools/build-docker-image
\ No newline at end of file
../../../common/barbican/config-external.sh
\ No newline at end of file
../../../common/barbican/start.sh
\ No newline at end of file
# Build info specific to this image. All values can be overridden in .buildconf
COMPONENT=barbican
SOURCE_INSTALL_AVAILABLE=1
# Used for git install method
: ${CLONE_FROM:=https://github.com/openstack/barbican}
# Used for curl install method
: ${TARBALL_URI:=http://tarballs.openstack.org/barbican/barbican-master.tar.gz}
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD ./barbican.tar /
RUN ln -s /barbican-* /barbican
RUN cd /barbican \
&& useradd --user-group barbican \
&& pip install uwsgi \
&& pip install -r requirements.txt \
&& pip install /barbican \
&& mkdir /etc/barbican /var/log/barbican \
&& cp -r /barbican/etc/* /etc/barbican/ \
&& rm -rf /root/.cache
COPY ./start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]
../../../../tools/build-docker-image
\ No newline at end of file
../../../common/barbican/config-external.sh
\ No newline at end of file
../../../common/barbican/start.sh
\ No newline at end of file
#!/bin/bash
SOURCE="/opt/kolla/barbican/barbican.conf"
TARGET="/etc/barbican/barbican.conf"
OWNER="barbican"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi
#!/bin/bash
set -o errexit
CMD="uwsgi"
ARGS="--master --emperor"
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
su -s /bin/sh -c "barbican-manage db_sync" barbican
exit 0
fi
exec $CMD $ARGS
../../centos/binary/barbican
\ No newline at end of file
../../centos/binary/barbican
\ No newline at end of file
......@@ -38,8 +38,7 @@ class BuildTest(base.BaseTestCase):
bad_results, good_results = build.main()
# these are images that are known to not build properly
excluded_images = ["barbican",
"gnocchi-api",
excluded_images = ["gnocchi-api",
"gnocchi-statsd"]
failures = 0
......
......@@ -40,7 +40,6 @@ class ImagesTest(base.BaseTestCase):
# these are images that are known to not build properly
excluded_images = ["kollaglue/centos-rdo-rhel-osp-base",
"kollaglue/centos-rdo-barbican",
"kollaglue/centos-rdo-gnocchi-api",
"kollaglue/centos-rdo-gnocchi-statsd"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment