diff --git a/containers/Dockerfile b/containers/Dockerfile index 04a69d2b..7fdbfb12 100644 --- a/containers/Dockerfile +++ b/containers/Dockerfile @@ -19,13 +19,13 @@ COPY --from=azure-cli /usr/local/bin/az /usr/bin/az # Install dependencies RUN yum install epel-release -y && \ - yum install -y git python python3-pip jq gettext && \ - python3 -m pip install -U pip && \ + yum install -y git python39 python3-pip jq gettext && \ + python3.9 -m pip install -U pip && \ git clone https://github.com/openshift-scale/kraken /root/kraken && \ mkdir -p /root/.kube && cd /root/kraken && \ - pip3 install -r requirements.txt + pip3.9 install -r requirements.txt WORKDIR /root/kraken -ENTRYPOINT ["python3", "run_kraken.py"] +ENTRYPOINT ["python3.9", "run_kraken.py"] CMD ["--config=config/config.yaml"] diff --git a/containers/kraken.yml b/containers/kraken.yml index 71adb35c..0763a29a 100644 --- a/containers/kraken.yml +++ b/containers/kraken.yml @@ -18,7 +18,7 @@ spec: privileged: true image: quay.io/chaos-kubox/krkn command: ["/bin/sh", "-c"] - args: ["python3 run_kraken.py -c config/config.yaml"] + args: ["python3.9 run_kraken.py -c config/config.yaml"] volumeMounts: - mountPath: "/root/.kube" name: config diff --git a/docs/installation.md b/docs/installation.md index 3976392a..fa496285 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -21,16 +21,16 @@ $ cd kraken #### Install the dependencies ``` -$ python3 -m venv chaos +$ python3.9 -m venv chaos $ source chaos/bin/activate -$ pip3 install -r requirements.txt +$ pip3.9 install -r requirements.txt ``` **NOTE**: Make sure python3-devel and latest pip versions are installed on the system. The dependencies install has been tested with pip >= 21.1.3 versions. #### Run ``` -$ python3 run_kraken.py --config +$ python3.9 run_kraken.py --config ``` ### Run containerized version