Skip to content

Commit

Permalink
#0: clean out dependencies from docker
Browse files Browse the repository at this point in the history
  • Loading branch information
TT-billteng committed Jun 10, 2024
1 parent 6a749d9 commit e3c2acb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
3 changes: 1 addition & 2 deletions dockerfile/ubuntu-20.04-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive
ENV GTEST_VERSION=1.13.0
ENV DOXYGEN_VERSION=1.9.6

# Install build and runtime deps
Expand All @@ -19,7 +18,7 @@ RUN apt-get -y update \

## Test Related Dependencies
COPY /scripts/docker/install_test_deps.sh /opt/tt_metal_infra/scripts/docker/install_test_deps.sh
RUN /bin/bash /opt/tt_metal_infra/scripts/docker/install_test_deps.sh ${GTEST_VERSION} ${DOXYGEN_VERSION}
RUN /bin/bash /opt/tt_metal_infra/scripts/docker/install_test_deps.sh ${DOXYGEN_VERSION}

# Copy remaining convenience scripts
COPY /scripts /opt/tt_metal_infra/scripts
Expand Down
17 changes: 3 additions & 14 deletions scripts/docker/install_test_deps.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
#!/bin/bash

# Check if two arguments are provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <gtest_version> <doxygen_version>"
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <doxygen_version>"
exit 1
fi

GTEST_VERSION=$1
DOXYGEN_VERSION=$2

# Installs Google test
mkdir -p /opt/tt_metal_infra/googletest
chmod ugo+w /opt/tt_metal_infra/googletest
wget -O /opt/tt_metal_infra/googletest/googletest-release-${GTEST_VERSION}.tar.gz https://github.com/google/googletest/archive/refs/tags/v${GTEST_VERSION}.tar.gz
tar -xzf /opt/tt_metal_infra/googletest/googletest-release-${GTEST_VERSION}.tar.gz -C /opt/tt_metal_infra/googletest/
cd /opt/tt_metal_infra/googletest/googletest-${GTEST_VERSION}
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON .
make
make install
DOXYGEN_VERSION=$1

# Install doxygen
mkdir -p /opt/tt_metal_infra/doxygen
Expand Down
3 changes: 0 additions & 3 deletions scripts/docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ apt-utils
dialog
software-properties-common=0.99.9.12
build-essential=12.8ubuntu1.1
libgoogle-glog-dev=0.4.0-1build1
libyaml-cpp-dev=0.6.2-4ubuntu1
git
git-lfs
libboost-all-dev=1.71.0.0ubuntu2
libsndfile1=1.0.28-7ubuntu0.2
pandoc
libtbb-dev
libcapstone-dev
Expand Down

0 comments on commit e3c2acb

Please sign in to comment.