Updates to dockerfile after verification on client offline environment
- updated toolset
- additional dockerfile for rally-offline (wip)
- si-tests fw files updates to use local repos
- si-env.sh script with env vars for offline use
Related-PROD: PROD-36128
Change-Id: I16b9236e68e6358c16865ce8ed7f226610e82512
diff --git a/k8s/docker-ubuntu-2004 b/k8s/docker-ubuntu-2004
index cb5d35a..998ae15 100644
--- a/k8s/docker-ubuntu-2004
+++ b/k8s/docker-ubuntu-2004
@@ -15,8 +15,8 @@
rm -rf /opt/fio && \
export TZ="America/Chicago" && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
- apt-get install -y python3-pip python3-venv vim git iperf3 mtr htop iputils-ping traceroute tcpdump wget iproute2 curl && \
- pip3 install --no-cache-dir python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient && \
+ apt-get install -y python3-pip python3-venv vim git iperf3 mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen && \
+ pip3 install --no-cache-dir python-openstackclient python-neutronclient python-heatclient pyghmi python-octaviaclient tempestparser && \
git clone https://gerrit.mcp.mirantis.com/mcp/cvp-configuration /opt/res-files && \
git clone http://gerrit.mcp.mirantis.com/mcp/cfg-checker /opt/cfg-checker && \
cd /opt/cfg-checker && \
@@ -33,11 +33,15 @@
python3 -m venv .venv && \
. .venv/bin/activate && \
pip3 install --no-cache-dir -r si_tests/requirements.txt && \
- apt -y remove git make g++ gcc && \
- apt -y autoremove --purge && \
+ deactivate && \
+ cd /opt && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /opt/res-files/.git && \
rm -rf /opt/cfg-checker/.git
+RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
+ install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
+ rm kubectl
+
ENTRYPOINT ["sleep infinite"]