update dockerfile to install dependencies (#5784)

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
This commit is contained in:
Anand Kumar Singh
2022-06-02 15:06:05 +05:30
committed by GitHub
parent f3cd3e9fc3
commit c12ed3109d
2 changed files with 1 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ RUN curl -fsSL https://clis.cloud.ibm.com/install/linux | sh && \
chmod +x install-oc-tools.sh && \ chmod +x install-oc-tools.sh && \
./install-oc-tools.sh --latest 4.7 && \ ./install-oc-tools.sh --latest 4.7 && \
apt-get update -y && \ apt-get update -y && \
apt-get install -y sshpass && \ apt-get install -y sshpass jq colorized-logs && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Create non-root user and associated home directory # Create non-root user and associated home directory

View File

@@ -8,8 +8,6 @@ save_logs() {
LOGFILE="$1" LOGFILE="$1"
NAME="$2" NAME="$2"
RESULT="$3" RESULT="$3"
apt update
apt install jq colorized-logs --yes
ansi2html <"/tmp/${LOGFILE}" >"/tmp/${LOGFILE}.html" ansi2html <"/tmp/${LOGFILE}" >"/tmp/${LOGFILE}.html"
ansi2txt <"/tmp/${LOGFILE}" >"/tmp/${LOGFILE}.txt" ansi2txt <"/tmp/${LOGFILE}" >"/tmp/${LOGFILE}.txt"