diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-11-14 10:27:58 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-11-14 10:27:58 +0000 |
| commit | 1d5754f2c60ae2fa0b2e1671b1a81d4d88ed0346 (patch) | |
| tree | 7b412e5dcaafa68e76abb92e0ddd1458c707b214 /docker/karbor/karbor-api | |
| parent | 8b1880fc3500eba4ee077cb5a1e2cf567155552e (diff) | |
| parent | 2dae2f080ca814cfc6c753159540a74778ad1c33 (diff) | |
| download | kolla-1d5754f2c60ae2fa0b2e1671b1a81d4d88ed0346.tar.gz kolla-1d5754f2c60ae2fa0b2e1671b1a81d4d88ed0346.zip | |
Merge "Add karbor container"
Diffstat (limited to 'docker/karbor/karbor-api')
| -rw-r--r-- | docker/karbor/karbor-api/Dockerfile.j2 | 20 | ||||
| -rw-r--r-- | docker/karbor/karbor-api/extend_start.sh | 8 |
2 files changed, 28 insertions, 0 deletions
diff --git a/docker/karbor/karbor-api/Dockerfile.j2 b/docker/karbor/karbor-api/Dockerfile.j2 new file mode 100644 index 000000000..d8bbe7818 --- /dev/null +++ b/docker/karbor/karbor-api/Dockerfile.j2 @@ -0,0 +1,20 @@ +FROM {{ namespace }}/{{ image_prefix }}karbor-base:{{ tag }} +MAINTAINER {{ maintainer }} + +{% block karbor_api_header %}{% endblock %} + +{% if install_type == 'binary' %} + +RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ + && /bin/false + +{% endif %} + +COPY extend_start.sh /usr/local/bin/kolla_karbor_extend_start +RUN chmod 755 /usr/local/bin/kolla_karbor_extend_start + +{% block karbor_api_footer %}{% endblock %} +{% block footer %}{% endblock %} +{{ include_footer }} + +USER karbor diff --git a/docker/karbor/karbor-api/extend_start.sh b/docker/karbor/karbor-api/extend_start.sh new file mode 100644 index 000000000..c5102072e --- /dev/null +++ b/docker/karbor/karbor-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 + karbor-manage db sync + exit 0 +fi |
