MissouriMRDT / Autonomy_Software

Use any one of wget or curl but not both DOK-DL4001
Anti-pattern
Minor
16 occurrences in this check
Either use Wget or Curl but not both
114
115# Install Google Test
116ARG GTEST_VERSION="1.15.2"
117RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/gtest/arm64/gtest_${GTEST_VERSION}_arm64.deb && \118    dpkg -i gtest_${GTEST_VERSION}_arm64.deb && \
119    rm gtest_${GTEST_VERSION}_arm64.deb
120
Either use Wget or Curl but not both
108
109# Install Quill
110ARG QUILL_VERSION="7.1.0"
111RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/quill/arm64/quill_${QUILL_VERSION}_arm64.deb && \112    dpkg -i quill_${QUILL_VERSION}_arm64.deb && \
113    rm quill_${QUILL_VERSION}_arm64.deb
114
Either use Wget or Curl but not both
102
103# Install Tensorflow.
104ARG TENSORFLOW_VERSION="2.15.0"
105RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/tensorflow/arm64/tensorflow_${TENSORFLOW_VERSION}_arm64.deb && \106    dpkg -i tensorflow_${TENSORFLOW_VERSION}_arm64.deb && \
107    rm tensorflow_${TENSORFLOW_VERSION}_arm64.deb
108
Either use Wget or Curl but not both
 96
 97# Install GeographicLib
 98ARG GEOLIB_VERSION="2.3"
 99RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/geolib/arm64/geolib_${GEOLIB_VERSION}_arm64.deb && \100    dpkg -i geolib_${GEOLIB_VERSION}_arm64.deb && \
101    rm geolib_${GEOLIB_VERSION}_arm64.deb
102
Either use Wget or Curl but not both
 90
 91# Install Abseil.
 92ARG ABSEIL_VERSION="20230802.1"
 93RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/abseil/arm64/abseil_${ABSEIL_VERSION}_arm64.deb && \ 94    dpkg -i abseil_${ABSEIL_VERSION}_arm64.deb && \
 95    rm abseil_${ABSEIL_VERSION}_arm64.deb
 96
Either use Wget or Curl but not both
 84
 85# Install PyTorch.
 86ARG TORCH_VERSION="2.2.2"
 87RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/pytorch/arm64/pytorch_${TORCH_VERSION}_arm64.deb && \ 88    dpkg -i pytorch_${TORCH_VERSION}_arm64.deb && \
 89    rm pytorch_${TORCH_VERSION}_arm64.deb
 90
Either use Wget or Curl but not both
 78
 79# Install OpenCV
 80ARG OPENCV_VERSION="4.10.0"
 81RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/opencv/arm64/opencv_${OPENCV_VERSION}_arm64.deb && \ 82    dpkg -i opencv_${OPENCV_VERSION}_arm64.deb && \
 83    rm opencv_${OPENCV_VERSION}_arm64.deb
 84
Either use Wget or Curl but not both
 67# Install ZED SDK
 68ARG ZED_MAJOR="4"
 69ARG ZED_MINOR="1"
 70RUN wget -q --no-check-certificate -O ZED_SDK_Linux.run \ 71    https://download.stereolabs.com/zedsdk/${ZED_MAJOR}.${ZED_MINOR}/l4t${L4T_MAJOR}.${L4T_MINOR}/jetsons && \
 72    chmod +x ZED_SDK_Linux.run ; ./ZED_SDK_Linux.run silent && \
 73    rm -rf /usr/local/zed/resources/* \
Either use Wget or Curl but not both
125
126# Install Google Test
127ARG GTEST_VERSION="1.15.2"
128RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/gtest/amd64/gtest_${GTEST_VERSION}_amd64.deb && \129    dpkg -i gtest_${GTEST_VERSION}_amd64.deb && \
130    rm gtest_${GTEST_VERSION}_amd64.deb
131
Either use Wget or Curl but not both
119
120# Install Quill
121ARG QUILL_VERSION="7.1.0"
122RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/quill/amd64/quill_${QUILL_VERSION}_amd64.deb && \123    dpkg -i quill_${QUILL_VERSION}_amd64.deb && \
124    rm quill_${QUILL_VERSION}_amd64.deb
125
Either use Wget or Curl but not both
113
114# Install Tensorflow.
115ARG TENSORFLOW_VERSION="2.15.0"
116RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/tensorflow/amd64/tensorflow_${TENSORFLOW_VERSION}_amd64.deb && \117    dpkg -i tensorflow_${TENSORFLOW_VERSION}_amd64.deb && \
118    rm tensorflow_${TENSORFLOW_VERSION}_amd64.deb
119
Either use Wget or Curl but not both
107
108# Install GeographicLib
109ARG GEOLIB_VERSION="2.3"
110RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/geolib/amd64/geolib_${GEOLIB_VERSION}_amd64.deb && \111    dpkg -i geolib_${GEOLIB_VERSION}_amd64.deb && \
112    rm geolib_${GEOLIB_VERSION}_amd64.deb
113
Either use Wget or Curl but not both
101
102# Install Abseil.
103ARG ABSEIL_VERSION="20230802.1"
104RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/abseil/amd64/abseil_${ABSEIL_VERSION}_amd64.deb && \105    dpkg -i abseil_${ABSEIL_VERSION}_amd64.deb && \
106    rm abseil_${ABSEIL_VERSION}_amd64.deb
107
Either use Wget or Curl but not both
 95
 96# Install PyTorch.
 97ARG TORCH_VERSION="2.2.2"
 98RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/pytorch/amd64/pytorch_${TORCH_VERSION}_amd64.deb && \ 99    dpkg -i pytorch_${TORCH_VERSION}_amd64.deb && \
100    rm pytorch_${TORCH_VERSION}_amd64.deb
101
Either use Wget or Curl but not both
 89
 90# Install OpenCV
 91ARG OPENCV_VERSION="4.10.0"
 92RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/opencv/amd64/opencv_${OPENCV_VERSION}_amd64.deb && \ 93    dpkg -i opencv_${OPENCV_VERSION}_amd64.deb && \
 94    rm opencv_${OPENCV_VERSION}_amd64.deb
 95
Either use Wget or Curl but not both
 78# Install ZED SDK
 79ARG ZED_MAJOR="4"
 80ARG ZED_MINOR="1"
 81RUN wget -q -O ZED_SDK_Linux_Ubuntu${UBUNTU_MAJOR}.run \ 82    https://download.stereolabs.com/zedsdk/${ZED_MAJOR}.${ZED_MINOR}/cu${CUDA_MAJOR}${CUDA_MINOR%.*}/ubuntu${UBUNTU_MAJOR} && \
 83    chmod +x ZED_SDK_Linux_Ubuntu${UBUNTU_MAJOR}.run ; ./ZED_SDK_Linux_Ubuntu${UBUNTU_MAJOR}.run silent && \
 84    ln -sf /lib/x86_64-linux-gnu/libusb-1.0.so.0 /usr/lib/x86_64-linux-gnu/libusb-1.0.so && \