Skip to content

Commit

Permalink
98 fix snyk vulnerabilities (IntelLabs#100)
Browse files Browse the repository at this point in the history
SDL Requirement: Apply available vulnerability fixes
  • Loading branch information
cwlacewe authored Mar 28, 2023
1 parent 5cb0431 commit e97b93f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ sudo apt-get update
sudo apt-get -y install --no-install-recommends software-properties-common
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu focal-security main"
sudo apt-get -y install --no-install-recommends apt-transport-https autoconf automake bison build-essential \
bzip2 ca-certificates curl ed flex g++ git gnupg-agent javacc libarchive-tools \
bzip2 ca-certificates curl=7.68.0-1ubuntu2.18 ed flex g++ git gnupg-agent javacc libarchive-tools \
libatlas-base-dev libavcodec-dev libavformat-dev libboost-all-dev libbz2-dev \
libc-ares-dev libdc1394-22-dev libgflags-dev libgoogle-glog-dev libgtest-dev \
libgtk-3-dev libgtk2.0-dev libhdf5-serial-dev libjpeg-dev libjpeg8-dev libjsoncpp-dev \
libleveldb-dev liblmdb-dev liblz4-dev libopenblas-dev libopenmpi-dev \
libpng-dev librdkafka-dev libsnappy-dev libssl-dev libswscale-dev libtbb-dev \
libtbb2 libtiff-dev libtiff5-dev libtool maven mpich openjdk-11-jdk-headless \
pkg-config python3-dev python3-pip unzip
pip3 install --no-cache-dir "numpy>=1.23.2"
pip3 install --no-cache-dir "numpy>=1.23.2" "setuptools>=65.5.1"
```
### Clone/Download Dependencies
Here we clone the repositories for grpc v1.40.0, libpng12, Swig v4.0.2, OpenCV 4.5.3, Valijson v0.6, CMake v3.21.2, Faiss v1.7.1, and FLINNG. Then download necesarry files for zlib v1.2.13, Json-simple v1.1.1, and TileDB v1.3.1.
Expand Down Expand Up @@ -79,7 +79,7 @@ cd tools/distrib/python/grpcio_tools
python ../make_grpcio_tools.py
GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip3 install --no-cache-dir .

cd ../../../../third_party/protobuf/cmake
cd ../../../../third_party/protobuf/cmake
mkdir build && cd build
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE ..
make -j && sudo make install
Expand Down Expand Up @@ -131,7 +131,7 @@ make install
### Zlib
```bash
cd $VDMS_DEP_DIR && tar -xvzf zlib-1.2.13.tar.gz
cd zlib-1.2.13 && ./configure
cd zlib-1.2.13 && ./configure
make -j && sudo make install
```

Expand Down
4 changes: 2 additions & 2 deletions docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG MAVEN_OPTS
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common && \
add-apt-repository "deb http://security.ubuntu.com/ubuntu ${UBUNTU_NAME}-security main" && \
apt-get install -y --no-install-recommends apt-transport-https autoconf automake bison build-essential \
bzip2 ca-certificates curl ed flex g++ git gnupg-agent javacc libarchive-tools \
bzip2 ca-certificates curl=7.68.0-1ubuntu2.18 ed flex g++ git gnupg-agent javacc libarchive-tools \
libatlas-base-dev libavcodec-dev libavformat-dev libboost-all-dev libbz2-dev \
libc-ares-dev libdc1394-22-dev libgflags-dev libgoogle-glog-dev libgtest-dev \
libgtk-3-dev libgtk2.0-dev libhdf5-serial-dev libjpeg-dev libjpeg8-dev libjsoncpp-dev \
Expand All @@ -27,7 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends software-proper
pkg-config python3-dev python3-pip unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
pip3 install --no-cache-dir "numpy>=1.23.2"
pip3 install --no-cache-dir "numpy>=1.23.2" "setuptools>=65.5.1"

# Pull and Install Dependencies
WORKDIR /dependencies
Expand Down
4 changes: 2 additions & 2 deletions docker/check-in/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG MAVEN_OPTS
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common && \
add-apt-repository "deb http://security.ubuntu.com/ubuntu ${UBUNTU_NAME}-security main" && \
apt-get install -y --no-install-recommends apt-transport-https autoconf automake bison build-essential \
bzip2 ca-certificates curl ed flex g++ git gnupg-agent javacc libarchive-tools \
bzip2 ca-certificates curl=7.68.0-1ubuntu2.18 ed flex g++ git gnupg-agent javacc libarchive-tools \
libatlas-base-dev libavcodec-dev libavformat-dev libboost-all-dev libbz2-dev \
libc-ares-dev libdc1394-22-dev libgflags-dev libgoogle-glog-dev libgtest-dev \
libgtk-3-dev libgtk2.0-dev libhdf5-serial-dev libjpeg-dev libjpeg8-dev libjsoncpp-dev \
Expand All @@ -27,7 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends software-proper
pkg-config python3-dev python3-pip unzip lcov gdb && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
pip3 install --no-cache-dir "numpy>=1.23.2" "gcovr>=5.2"
pip3 install --no-cache-dir "numpy>=1.23.2" "setuptools>=65.5.1" "gcovr>=5.2"

# Pull and Install Dependencies
WORKDIR /dependencies
Expand Down
4 changes: 2 additions & 2 deletions docker/check-in/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG MAVEN_OPTS
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common && \
add-apt-repository "deb http://security.ubuntu.com/ubuntu ${UBUNTU_NAME}-security main" && \
apt-get install -y --no-install-recommends apt-transport-https autoconf automake bison build-essential \
bzip2 ca-certificates curl ed flex g++ git gnupg-agent javacc libarchive-tools \
bzip2 ca-certificates curl=7.68.0-1ubuntu2.18 ed flex g++ git gnupg-agent javacc libarchive-tools \
libatlas-base-dev libavcodec-dev libavformat-dev libboost-all-dev libbz2-dev \
libc-ares-dev libdc1394-22-dev libgflags-dev libgoogle-glog-dev libgtest-dev \
libgtk-3-dev libgtk2.0-dev libhdf5-serial-dev libjpeg-dev libjpeg8-dev libjsoncpp-dev \
Expand All @@ -27,7 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends software-proper
pkg-config python3-dev python3-pip unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
pip3 install --no-cache-dir "numpy>=1.23.2"
pip3 install --no-cache-dir "numpy>=1.23.2" "setuptools>=65.5.1"

# Pull and Install Dependencies
WORKDIR /dependencies
Expand Down

0 comments on commit e97b93f

Please sign in to comment.