Skip to content

Commit

Permalink
#0: Update dockerfile with c++17-dev and python3-dev, removed venv
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed Jun 14, 2024
1 parent 14702ce commit ad68ea3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions dockerfile/ubuntu-20.04-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ COPY build_metal.sh /scripts/build_metal.sh
# Setup Env variables to setup Python Virtualenv - Install TT-Metal Python deps
ENV TT_METAL_INFRA_DIR=/opt/tt_metal_infra
ENV PYTHON_ENV_DIR=${TT_METAL_INFRA_DIR}/tt-metal/python_env
RUN python3 -m venv $PYTHON_ENV_DIR
ENV PATH="$PYTHON_ENV_DIR/bin:$PATH"

# Disable using venv since this is isolated in a docker container
# RUN python3 -m venv $PYTHON_ENV_DIR
# ENV PATH="$PYTHON_ENV_DIR/bin:$PATH"

# Copy requirements from tt-metal folders with requirements.txt docs
COPY /docs/requirements-docs.txt ${TT_METAL_INFRA_DIR}/tt-metal/docs/.
Expand All @@ -54,4 +56,11 @@ RUN cd $TT_METAL_INFRA_DIR \
&& make -j$(nproc)
ENV PATH="$TT_METAL_INFRA_DIR/gdb-14.2/gdb:$PATH"

# Can only be installed after Clang-17 installed
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
libc++-17-dev \
libc++abi-17-dev \
&& rm -rf /var/lib/apt/lists/*

CMD ["tail", "-f", "/dev/null"]
1 change: 1 addition & 0 deletions scripts/docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python3-pip
libhwloc-dev
libhdf5-serial-dev
ruby=1:2.7+1
python3-dev=3.8.2-0ubuntu2
python3.8-venv=3.8.10-0ubuntu1~20.04.9
cargo
ninja-build

0 comments on commit ad68ea3

Please sign in to comment.