4628c5f5ed
Used to be: git.openstack.org/openstack/monasca-persister?h=stable/pike Now : opendev.org/openstack/monasca-persister/src/branch/stable/pike Since the way links to specific branches changed, usage of those links has to be changed as well. CONSTRAINTS_BRANCH variable was removed because CONSTRAINTS_FILE contains link to the upper-requirements file with specified branch. Story: 2005666 Task: 30968 Change-Id: I57c09bb50138bf829f39d4034bbc78356e34f3a6
36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
ARG DOCKER_IMAGE=monasca/agent-collector
|
|
ARG APP_REPO=https://review.opendev.org/openstack/monasca-agent
|
|
|
|
# Branch, tag or git hash to build from.
|
|
ARG REPO_VERSION=master
|
|
ARG CONSTRAINTS_BRANCH=master
|
|
|
|
# Extra Python3 dependencies.
|
|
ARG EXTRA_DEPS="Jinja2 prometheus_client docker-py"
|
|
|
|
# Always start from `monasca-base` image and use specific tag of it.
|
|
ARG BASE_TAG=master
|
|
FROM monasca/base:$BASE_TAG
|
|
|
|
# Environment variables used for our service or wait scripts.
|
|
ENV \
|
|
KEYSTONE_DEFAULTS_ENABLED=true \
|
|
MONASCA_URL=http://monasca:8070/v2.0 \
|
|
LOG_LEVEL=WARN \
|
|
HOSTNAME_FROM_KUBERNETES=false \
|
|
STAY_ALIVE_ON_FAILURE="false"
|
|
|
|
# Copy all neccessary files to proper locations.
|
|
COPY templates/ /templates
|
|
COPY agent.yaml.j2 /etc/monasca/agent/agent.yaml.j2
|
|
COPY kubernetes_get_host.py /
|
|
|
|
# Run here all additionals steps your service need post installation.
|
|
# Stay with only one `RUN` and use `&& \` for next steps to don't create
|
|
# unnecessary image layers. Clean at the end to conserve space.
|
|
RUN \
|
|
apk add --no-cache util-linux libxml2 py2-psutil libffi-dev openssl-dev
|
|
|
|
# Implement start script in `start.sh` file.
|
|
CMD ["/start.sh"]
|