diff options
Diffstat (limited to 'docker/aodh/aodh-api')
| -rw-r--r-- | docker/aodh/aodh-api/Dockerfile.j2 | 18 | ||||
| -rw-r--r-- | docker/aodh/aodh-api/extend_start.sh | 8 |
2 files changed, 26 insertions, 0 deletions
diff --git a/docker/aodh/aodh-api/Dockerfile.j2 b/docker/aodh/aodh-api/Dockerfile.j2 new file mode 100644 index 000000000..5a4777d81 --- /dev/null +++ b/docker/aodh/aodh-api/Dockerfile.j2 @@ -0,0 +1,18 @@ +FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }} +MAINTAINER {{ maintainer }} + +{% if install_type == 'binary' %} + {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + +RUN yum install -y openstack-aodh-api \ + && yum clean all + + {% endif %} +{% endif %} + +COPY extend_start.sh /usr/local/bin/kolla_extend_start +RUN chmod 755 /usr/local/bin/kolla_extend_start + +{{ include_footer }} + +USER aodh diff --git a/docker/aodh/aodh-api/extend_start.sh b/docker/aodh/aodh-api/extend_start.sh new file mode 100644 index 000000000..65349464c --- /dev/null +++ b/docker/aodh/aodh-api/extend_start.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# 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 + aodh-manage db_sync + exit 0 +fi |
