Browse Source

Update prereqs to include bc command

master 0.1.1
Fábio Kaiser Rauber 3 years ago
parent
commit
7a68f1ad2c
  1. 2
      Dockerfile
  2. 5
      check_full_pvs.sh

2
Dockerfile

@ -3,7 +3,7 @@ FROM bitnami/kubectl:1.22
USER root USER root
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y git && \ apt-get install -y git bc && \
rm -r /var/lib/apt/lists /var/cache/apt/archives rm -r /var/lib/apt/lists /var/cache/apt/archives
RUN mkdir -p /tmp/krew && chown 1001 /tmp/krew RUN mkdir -p /tmp/krew && chown 1001 /tmp/krew

5
check_full_pvs.sh

@ -21,7 +21,10 @@ checkReqs () {
echo "ERROR: df-pv kubectl plugin is required for this script to run. First install krew, then install df-pv plugin." echo "ERROR: df-pv kubectl plugin is required for this script to run. First install krew, then install df-pv plugin."
exit exit
fi fi
if [ ! -x "$(command -v "bc")" ]; then
echo "ERROR: bc command (precision calculator) is required for this script to run."
exit
fi
} }
scaleworkload () { scaleworkload () {

Loading…
Cancel
Save