Merge "venus: add log management system"
This commit is contained in:
commit
f212617276
11
docker/venus/venus-api/Dockerfile.j2
Normal file
11
docker/venus/venus-api/Dockerfile.j2
Normal 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
|
29
docker/venus/venus-base/Dockerfile.j2
Normal file
29
docker/venus/venus-base/Dockerfile.j2
Normal 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 %}
|
10
docker/venus/venus-base/extend_start.sh
Normal file
10
docker/venus/venus-base/extend_start.sh
Normal 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
|
13
docker/venus/venus-manager/Dockerfile.j2
Normal file
13
docker/venus/venus-manager/Dockerfile.j2
Normal 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
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,6 +95,7 @@ UNBUILDABLE_IMAGES = {
|
||||
"monasca-base",
|
||||
"monasca-thresh",
|
||||
"solum-base",
|
||||
"venus-base",
|
||||
"zun-base",
|
||||
},
|
||||
|
||||
|
6
releasenotes/notes/add-venus-e2a9824f5ef5cf30.yaml
Normal file
6
releasenotes/notes/add-venus-e2a9824f5ef5cf30.yaml
Normal 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.
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user