Skip to content

Commit

Permalink
Local build container
Browse files Browse the repository at this point in the history
  • Loading branch information
blackgnezdo committed Jan 20, 2024
1 parent 360ffd8 commit 90c91ea
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Run as
# docker build --build-arg REV=$(git rev-parse --short v12-branch) -t iverilog .
# docker create --name temp_container iverilog
# docker cp temp_container:/iverilog-9efd54caf.tgz iverilog-$(git rev-parse --short v12-branch).tgz
# docker rm temp_container

FROM ubuntu:22.04

ARG REV

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC

RUN apt update -qq && \
apt install -y make g++ git bison flex gperf libreadline-dev autoconf python3-sphinx

WORKDIR /iverilog

COPY . /iverilog
RUN autoconf
RUN ./configure --prefix=/iverilog-$REV
RUN make -j check
RUN make install
RUN make check
RUN cd / && tar zcf /iverilog-$REV.tgz /iverilog-$REV

0 comments on commit 90c91ea

Please sign in to comment.