Skip to content

Commit

Permalink
container: Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Sep 2, 2024
1 parent a170979 commit 592e769
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions util/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ ARG DOXYGEN_VERSION=1.12.0

# Install APT requirements
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get install -y \
apt update && \
apt install -y \
curl \
wget \
git \
tar \
python3.11 \
software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa -y && \
apt update && \
# python needs `software-properties-common` to add the deadsnakes PPA
apt install -y python3.11

# Build Rust tools
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
Expand All @@ -28,7 +32,7 @@ RUN rustup install 1.70.0
RUN rustup override set 1.70.0

# Install Verilator
RUN apt-get install -y verilator=${VERILATOR_VERSION}
RUN apt install -y verilator=${VERILATOR_VERSION}

# Change working directory
WORKDIR /tools
Expand Down Expand Up @@ -71,17 +75,17 @@ WORKDIR /tools
# apt-requirements.txt
#
COPY apt-requirements.txt /tmp/apt-requirements.txt
RUN apt-get update && \
RUN apt update && \
sed 's/#.*//' /tmp/apt-requirements.txt \
| xargs apt-get install -y && \
apt-get install -y --no-install-recommends \
| xargs apt install -y && \
apt install -y --no-install-recommends \
ca-certificates \
gnupg2 \
curl \
wget \
build-essential \
git && \
apt-get clean ; \
apt clean ; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

# Get the precompiled LLVM toolchain
Expand All @@ -101,12 +105,6 @@ RUN wget https://github.com/chipsalliance/verible/releases/download/v${VERIBLE_V
rm -rf verible-v${VERIBLE_VERSION}-linux-static-x86_64.tar.gz
ENV PATH="/tools/bin:${PATH}"

# Install git>=2.18, required by Github checkout action to recurse submodules
RUN apt-get update && apt-get install software-properties-common -y && \
add-apt-repository -y ppa:git-core/ppa && \
apt-get update && \
apt-get install git -y

# Copy artifacts from stage 1.
COPY --from=builder /tools/bender bin/
COPY --from=builder /root/.cargo/bin/banshee bin/
Expand Down

0 comments on commit 592e769

Please sign in to comment.