Add ptp service docker image
Change-Id: I317ae1fe3bb33cda4e5b947e5418f9419373d7c5 Partial-implements: blueprint ptp-service
This commit is contained in:
parent
ec028fc398
commit
725c14c43e
@ -148,6 +148,8 @@ Kolla provides images to deploy the following infrastructure components:
|
||||
- `MongoDB <https://www.mongodb.org/>`__ as a database back end for Ceilometer
|
||||
and Gnocchi.
|
||||
- `Open vSwitch <http://openvswitch.org/>`__ and Linuxbridge back ends for Neutron.
|
||||
- `Linuxptp <http://linuxptp.sourceforge.net/>`__ an implementation of the Precision
|
||||
Time Protocol (PTP) according to IEEE standard 1588 for Linux.
|
||||
- `Qdrouterd <https://qpid.apache.org/components/dispatch-router/index.html>`__ as a
|
||||
direct messaging back end for communication between services.
|
||||
- `RabbitMQ <https://www.rabbitmq.com/>`__ as a broker messaging back end for
|
||||
|
16
docker/ptp/Dockerfile.j2
Normal file
16
docker/ptp/Dockerfile.j2
Normal file
@ -0,0 +1,16 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
||||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||
|
||||
{% block ptp_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% set ptp_packages = ['linuxptp'] %}
|
||||
|
||||
{{ macros.install_packages(ptp_packages | customizable("packages")) }}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||
|
||||
{% block ptp_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
12
docker/ptp/extend_start.sh
Normal file
12
docker/ptp/extend_start.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f /var/run/ptp.pid
|
||||
|
||||
PTP_LOG_DIR="/var/log/kolla/ptp"
|
||||
if [[ ! -d "${PTP_LOG_DIR}" ]]; then
|
||||
mkdir -p ${PTP_LOG_DIR}
|
||||
fi
|
||||
|
||||
if [[ $(stat -c %a ${PTP_LOG_DIR}) != "755" ]]; then
|
||||
chmod 755 ${PTP_LOG_DIR}
|
||||
fi
|
@ -71,6 +71,7 @@ _PROFILE_OPTS = [
|
||||
'mongodb',
|
||||
'opendaylight',
|
||||
'openvswitch',
|
||||
'ptp',
|
||||
'qdrouterd',
|
||||
'rabbitmq',
|
||||
'redis',
|
||||
|
@ -0,0 +1,3 @@
|
||||
---
|
||||
features:
|
||||
- Add ptp service image
|
Loading…
Reference in New Issue
Block a user