monasca-tempest-plugin/docker/Dockerfile

45 lines
1.4 KiB
Docker

ARG DOCKER_IMAGE=monasca/tempest
ARG APP_REPO=https://git.openstack.org/openstack/monasca-tempest-plugin
# Branch, tag or git hash to build from.
ARG REPO_VERSION=master
ARG CONSTRAINTS_BRANCH=master
# Extra Python3 dependencies.
ARG EXTRA_DEPS="python-openstackclient"
# 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 \
MONASCA_URI=http://monasca:8070 \
KEYSTONE_IDENTITY_URI=http://keystone:35357 \
USE_DYNAMIC_CREDS=True \
KEYSTONE_ADMIN_USER=mini-mon \
KEYSTONE_ADMIN_PASSWORD=password \
KEYSTONE_ADMIN_PROJECT=mini-mon \
KEYSTONE_ADMIN_DOMAIN=Default \
OS_AUTH_URL=http://keystone:35357/v3 \
OS_USERNAME=mini-mon \
OS_PASSWORD=password \
OS_TENANT_NAME=mini-mon \
OS_DOMAIN_NAME=Default \
STAY_ALIVE_ON_FAILURE=false
# Copy all neccessary files to proper locations.
COPY tempest.conf.j2 /etc/tempest/
WORKDIR /tempest
# 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 \
# echo "Some steps to do after main installation." && \
# echo "Hello when building."
# Implement start script in `start.sh` file.
CMD ["/start.sh"]