Charm Layer - OpenStack API layer
Go to file
Pratik Raj 2ee8f4e1e6
optimize size and time using --no-cache-dir
Using --no-cache-dir flag in pip install ,make sure dowloaded packages
by pip don't cached on system . This is a best practise which make sure
to fetch ftom repo instead of using local cached one . Further , in case
of Docker Containers , by restricing caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Change-Id: I1281de6e297fdae73ea285b0c7ccc4db3d64123d
Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2020-06-18 16:45:47 +05:30
reactive Update peers with API addresses 2020-03-25 14:17:31 -07:00
.gitignore Add basic tox targets to verify layer build and mock out pep8 for now 2016-07-01 10:23:31 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:45:02 +00:00
.zuul.yaml import zuul job settings from project-config 2018-09-11 13:15:25 -04:00
LICENSE Switch licensing 2016-07-01 10:10:46 +01:00
README.md Remove TLS related helpers 2019-08-30 16:06:12 +02:00
config.yaml Remove TLS related helpers 2019-08-30 16:06:12 +02:00
layer.yaml Add list of files to exclude on layer consumption 2019-11-13 14:05:48 +01:00
metadata.yaml Remove TLS related helpers 2019-08-30 16:06:12 +02:00
requirements.txt Remove TLS related helpers 2019-08-30 16:06:12 +02:00
test-requirements.txt Add SSL cert/key config options 2016-07-12 19:09:37 +00:00
tox.ini optimize size and time using --no-cache-dir 2020-06-18 16:45:47 +05:30

README.md

Overview

This layer provides the base layer for OpenStack charms that are will deploy API services, and provides all of the core functionality for:

  • HA (using the hacluster charm)
  • Juju 2.0 network space support for API endpoints
  • Configuration based network binding of API endpoints

To use this layer, including the following in the layer.yaml of your charm:

include: ['layer:openstack-api']

And then read the new API charm guide for details on how to use this layer in-conjuction with the charms.openstack Python module to quickly and easily put together a new API charm.