python-monascaclient/docker
Pierre Riteau 6d04502de7 Fix Docker build
The default nodeset was just changed to focal [1], which in the absence
of the python-is-python3 package doesn't provide a python binary.

[1] https://review.opendev.org/c/opendev/base-jobs/+/789098

Change-Id: I70984db7af7ce5f7028077db4debcd2cd9bd7c45
2021-05-20 18:26:11 +02:00
..
Dockerfile Change repository links usage in Dockerfile and build image 2019-05-23 08:52:23 +00:00
README.rst Create Docker image and build in Zuul 2019-04-02 08:36:21 +00:00
build_image.sh Fix Docker build 2021-05-20 18:26:11 +02:00
health_check.py Create Docker image and build in Zuul 2019-04-02 08:36:21 +00:00
start.sh Create Docker image and build in Zuul 2019-04-02 08:36:21 +00:00

README.rst

Docker image for Monasca Client

The Monasca Client image is based on the monasca-base image.

Building monasca-base image

See https://github.com/openstack/monasca-common/tree/master/docker/README.rst

Building Monasca Client image

Example:

$ ./build_image.sh <repository_version> <upper_constains_branch> <common_version>

Requirements from monasca-base image

health_check.py

This file will be used for checking the status of the Monasca API application.

Scripts

start.sh

In this starting script provide all steps that lead to the proper service start. Including usage of wait scripts and templating of configuration files. You also could provide the ability to allow running container after service died for easier debugging.

build_image.sh

Please read detailed build description inside the script.

Docker Compose

When you want to use docker-compose add it as a new service and be sure that property 'tty' is set to true to avoid exiting of container after startup. Example:

  • monasca-client:
    • image: monasca/client:master
    • tty: true

Running

If you don't want to use docker-compose mechanism, you can run container manually and connect it to existing docker Monasca network. Example: docker network --network=<network-name> <container_name>

You can also use docker run option to start a container and connect it to a network immediately: Example: docker run -itd --network=<network-name> <container-name>

Inside of container it is possible to run 'monasca' shell commands, e.g. to list all metrics. Example: monasca metric-list

https://docs.openstack.org/python-monascaclient/latest/