2020-01-27 19:58:12 +01:00
|
|
|
FROM centos:centos7 AS base-dependencies
|
2020-01-28 19:56:09 +01:00
|
|
|
LABEL author="James Cherry"
|
|
|
|
|
LABEL maintainer="James Cherry <cherry@parallaxsw.com>"
|
2019-01-17 00:38:22 +01:00
|
|
|
|
2025-01-31 18:04:06 +01:00
|
|
|
# Install dev and runtime dependencies (use vault repos since mirror repos are discontinued)
|
2024-08-05 19:34:31 +02:00
|
|
|
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo \
|
|
|
|
|
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo \
|
|
|
|
|
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo \
|
|
|
|
|
&& yum update -y \
|
|
|
|
|
&& yum install -y centos-release-scl epel-release
|
|
|
|
|
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo \
|
|
|
|
|
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo \
|
|
|
|
|
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo \
|
2025-02-05 01:34:50 +01:00
|
|
|
&& yum install -y devtoolset-11 wget cmake3 make eigen3-devel tcl swig3 flex zlib-devel valgrind \
|
2020-01-27 19:58:12 +01:00
|
|
|
&& yum clean -y all
|
|
|
|
|
|
2025-01-31 18:04:06 +01:00
|
|
|
# Download Bison
|
|
|
|
|
RUN wget https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.gz && \
|
|
|
|
|
tar -xvf bison-3.8.2.tar.gz && \
|
|
|
|
|
rm bison-3.8.2.tar.gz
|
|
|
|
|
|
|
|
|
|
# Build Bison
|
|
|
|
|
RUN source /opt/rh/devtoolset-11/enable && \
|
|
|
|
|
cd bison-3.8.2 && \
|
|
|
|
|
./configure && \
|
|
|
|
|
make -j`nproc` && \
|
|
|
|
|
make install
|
|
|
|
|
|
2024-08-05 19:34:31 +02:00
|
|
|
# Download CUDD
|
|
|
|
|
RUN wget https://raw.githubusercontent.com/davidkebo/cudd/main/cudd_versions/cudd-3.0.0.tar.gz && \
|
|
|
|
|
tar -xvf cudd-3.0.0.tar.gz && \
|
|
|
|
|
rm cudd-3.0.0.tar.gz
|
2020-01-27 19:58:12 +01:00
|
|
|
|
2024-10-09 00:31:43 +02:00
|
|
|
# Build CUDD
|
2025-01-31 18:04:06 +01:00
|
|
|
RUN source /opt/rh/devtoolset-11/enable && \
|
2024-08-05 19:34:31 +02:00
|
|
|
cd cudd-3.0.0 && \
|
|
|
|
|
mkdir ../cudd && \
|
|
|
|
|
./configure && \
|
2025-01-31 18:04:06 +01:00
|
|
|
make -j`nproc` && \
|
|
|
|
|
make install
|
2020-01-27 19:58:12 +01:00
|
|
|
|
2025-02-05 01:34:50 +01:00
|
|
|
# Download TCL
|
|
|
|
|
RUN wget http://prdownloads.sourceforge.net/tcl/tcl8.6.16-src.tar.gz && \
|
|
|
|
|
tar -xvf tcl8.6.16-src.tar.gz && \
|
|
|
|
|
rm tcl8.6.16-src.tar.gz
|
|
|
|
|
|
|
|
|
|
# Build TCL
|
|
|
|
|
RUN source /opt/rh/devtoolset-11/enable && \
|
|
|
|
|
cd tcl8.6.16 && \
|
|
|
|
|
./unix/configure && \
|
|
|
|
|
make -j`nproc` && \
|
|
|
|
|
make install
|
|
|
|
|
|
2020-01-27 19:58:12 +01:00
|
|
|
FROM base-dependencies AS builder
|
|
|
|
|
|
|
|
|
|
COPY . /OpenSTA
|
|
|
|
|
WORKDIR /OpenSTA
|
|
|
|
|
|
|
|
|
|
# Build
|
2024-08-05 19:34:31 +02:00
|
|
|
RUN rm -rf build && mkdir build
|
2025-01-31 18:04:06 +01:00
|
|
|
RUN source /opt/rh/devtoolset-11/enable && \
|
2024-10-09 00:31:43 +02:00
|
|
|
cd build && \
|
2025-01-31 18:04:06 +01:00
|
|
|
cmake3 .. && \
|
2024-10-09 00:31:43 +02:00
|
|
|
make -j`nproc`
|
2019-01-17 00:38:22 +01:00
|
|
|
|
|
|
|
|
# Run sta on entry
|
2025-05-20 00:04:49 +02:00
|
|
|
ENTRYPOINT ["/OpenSTA/build/sta"]
|