diff options
| author | Mathieu Rohon <mathieu.rohon@gmail.com> | 2017-04-26 10:28:18 +0200 |
|---|---|---|
| committer | Mathieu Rohon <mathieu.rohon@gmail.com> | 2017-06-02 15:55:07 +0200 |
| commit | 6338f8fbb09c874f741ea4c924f262ae9224cee3 (patch) | |
| tree | cc03684006ab9bd863a5197a7983e08018540775 | |
| parent | e67409a17c21884f5898c6d8f5e485b81bf71df3 (diff) | |
| download | kolla-6338f8fbb09c874f741ea4c924f262ae9224cee3.tar.gz kolla-6338f8fbb09c874f741ea4c924f262ae9224cee3.zip | |
Add skydive service
This patch introduces the docker template to build
the skydive container, that can be used to monitor
and troubleshoot networking in an openstack
deployment.
The skydive-analyzer and the skydive-agent will both
rely on the same container.
Implements: blueprint skydive-service
Co-Authored-By: Nicolas Bouron <nicolas.bouron@gmail.com>
Signed-off-by: Mathieu Rohon <mathieu.rohon@gmail.com>
Change-Id: Iab783179c2c3aba496a91debfd38a12215ae9f10
| -rw-r--r-- | docker/skydive/skydive-agent/Dockerfile.j2 | 7 | ||||
| -rw-r--r-- | docker/skydive/skydive-analyzer/Dockerfile.j2 | 8 | ||||
| -rw-r--r-- | docker/skydive/skydive-base/Dockerfile.j2 | 20 | ||||
| -rwxr-xr-x | kolla/common/config.py | 5 | ||||
| -rw-r--r-- | releasenotes/notes/add-skydive-52c3fb964fe6cc1b.yaml | 7 |
5 files changed, 47 insertions, 0 deletions
diff --git a/docker/skydive/skydive-agent/Dockerfile.j2 b/docker/skydive/skydive-agent/Dockerfile.j2 new file mode 100644 index 000000000..50708e13a --- /dev/null +++ b/docker/skydive/skydive-agent/Dockerfile.j2 @@ -0,0 +1,7 @@ +FROM {{ namespace }}/{{ image_prefix }}skydive-base:{{ tag }} +LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + +{% block skydive_agent_header %}{% endblock %} + +{% block skydive_agent_footer %}{% endblock %} +{% block footer %}{% endblock %} diff --git a/docker/skydive/skydive-analyzer/Dockerfile.j2 b/docker/skydive/skydive-analyzer/Dockerfile.j2 new file mode 100644 index 000000000..409076daf --- /dev/null +++ b/docker/skydive/skydive-analyzer/Dockerfile.j2 @@ -0,0 +1,8 @@ +FROM {{ namespace }}/{{ image_prefix }}skydive-base:{{ tag }} +LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + +{% block skydive_analyzer_header %}{% endblock %} +{% block skydive_analyzer_footer %}{% endblock %} +{% block footer %}{% endblock %} + +USER skydive diff --git a/docker/skydive/skydive-base/Dockerfile.j2 b/docker/skydive/skydive-base/Dockerfile.j2 new file mode 100644 index 000000000..ccb8dbf83 --- /dev/null +++ b/docker/skydive/skydive-base/Dockerfile.j2 @@ -0,0 +1,20 @@ +FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} +LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + +{% block skydive_base_header %}{% endblock %} + +{% import "macros.j2" as macros with context %} + +{{ macros.configure_user(name='skydive') }} + +{% if base_arch == 'x86_64' %} + +{% block skydive_install %} +RUN curl -o /usr/bin/skydive -L "https://github.com/skydive-project/skydive/releases/download/v0.11.0/skydive" \ + && chmod +x /usr/bin/skydive +{% endblock %} + +{% endif %} + +{% block skydive_base_footer %}{% endblock %} +{% block footer %}{% endblock %} diff --git a/kolla/common/config.py b/kolla/common/config.py index d068e81ab..0c0fa6b9e 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -73,6 +73,7 @@ _PROFILE_OPTS = [ 'qdrouterd', 'rabbitmq', 'redis', + 'skydive', 'tgtd', ], help='Infra images'), @@ -866,6 +867,10 @@ USERS = { 'sensu-user': { 'uid': 42467, 'gid': 42467, + }, + 'skydive-user': { + 'uid': 42468, + 'gid': 42468, } } diff --git a/releasenotes/notes/add-skydive-52c3fb964fe6cc1b.yaml b/releasenotes/notes/add-skydive-52c3fb964fe6cc1b.yaml new file mode 100644 index 000000000..72c0c2a7d --- /dev/null +++ b/releasenotes/notes/add-skydive-52c3fb964fe6cc1b.yaml @@ -0,0 +1,7 @@ +--- +features: + - Add skydive Dockerfile. + With skydive, cloud operators will be able to monitor + and troubleshoot networking in openstack. + This container can then be used as a skydive analyzer + or as a skydive agent. |
