mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
This commit adds support to run the tool as a container on the host with access to kubeconfig for better portability. The plan is to trigger regular image builds on quay.io to make sure it has the latest code.
24 lines
658 B
Docker
24 lines
658 B
Docker
# Dockerfile for kraken
|
|
|
|
FROM quay.io/openshift/origin-tests:latest as origintests
|
|
|
|
FROM centos:7
|
|
|
|
MAINTAINER Red Hat OpenShift Performance and Scale
|
|
|
|
ENV KUBECONFIG /root/.kube/config
|
|
|
|
# Copy OpenShift CLI, Kubernetes CLI from origin-tests image
|
|
COPY --from=origintests /usr/bin/oc /usr/bin/oc
|
|
COPY --from=origintests /usr/bin/kubectl /usr/bin/kubectl
|
|
|
|
# Install dependencies
|
|
RUN yum install -y git python36 python3-pip && \
|
|
git clone https://github.com/openshift-scale/kraken /root/kraken && \
|
|
mkdir -p /root/.kube && cd /root/kraken && \
|
|
pip3 install -r requirements.txt
|
|
|
|
WORKDIR /root/kraken
|
|
|
|
ENTRYPOINT python3 run_kraken.py --config=config/config.yaml
|