Merge "venus: add log management system"

This commit is contained in:
Zuul 2022-03-17 10:44:29 +00:00 committed by Gerrit Code Review
commit f212617276
8 changed files with 79 additions and 0 deletions

View File

@ -0,0 +1,11 @@
FROM {{ namespace }}/{{ image_prefix }}venus-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block venus_api_header %}{% endblock %}
{% block venus_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER venus

View File

@ -0,0 +1,29 @@
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block venus_base_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='venus') }}
ADD venus-base-archive /venus-base-source
{% set venus_base_pip_packages = [
'/venus'
] %}
RUN ln -s venus-base-source/* venus \
&& {{ macros.install_pip(venus_base_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/venus \
&& cp -r /venus/etc/venus/* /etc/venus/ \
&& chown -R venus: /etc/venus
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN touch /usr/local/bin/kolla_venus_extend_start \
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_venus_extend_start
{% block venus_base_footer %}{% endblock %}

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [[ ! -d "/var/log/kolla/venus" ]]; then
mkdir -p /var/log/kolla/venus
fi
if [[ $(stat -c %a /var/log/kolla/venus) != "755" ]]; then
chmod 755 /var/log/kolla/venus
fi
. /usr/local/bin/kolla_venus_extend_start

View File

@ -0,0 +1,13 @@
FROM {{ namespace }}/{{ image_prefix }}venus-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block venus_manager_header %}{% endblock %}
RUN chmod 755 /usr/local/bin/kolla_venus_extend_start
{% block venus_manager_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER venus

View File

@ -621,6 +621,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/openstack/trove/'
'trove-${openstack_branch}.tar.gz')},
'venus-base': {
'type': 'url',
'location': ('$tarballs_base/openstack/venus/'
'venus-${openstack_branch}.tar.gz')},
'vitrage-base': {
'type': 'url',
'location': ('$tarballs_base/openstack/vitrage/'
@ -951,6 +955,10 @@ USERS = {
'letsencrypt-user': {
'uid': 42488,
'gid': 42488,
},
'venus-user': {
'uid': 42489,
'gid': 42489,
}
}

View File

@ -95,6 +95,7 @@ UNBUILDABLE_IMAGES = {
"monasca-base",
"monasca-thresh",
"solum-base",
"venus-base",
"zun-base",
},

View File

@ -0,0 +1,6 @@
---
features:
- |
Add Venus images. Venus is an OpenStack project to provide "one-stop solution to log collection,
cleaning, indexing, analysis, alarm, visualization service". This project aims to provide
a platform to quickly solve service exception problems.

View File

@ -65,6 +65,7 @@ kolla_build_sources:
- tacker-base
- mistral-base-plugin-tacker
openstack/trove: trove-base
openstack/venus: venus-base
openstack/vitrage: vitrage-base
openstack/watcher: watcher-base
openstack/zun: zun-base