OpenSTA/Dockerfile

67 lines
2.2 KiB
Docker
Raw Normal View History

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
2020-01-27 19:58:12 +01:00
# Install dev and runtime dependencies
RUN yum group install -y "Development Tools" \
2020-11-03 03:15:35 +01:00
&& yum install -y https://repo.ius.io/ius-release-el7.rpm \
&& yum install -y centos-release-scl \
&& yum install -y wget devtoolset-8 \
&& yum install -y qt5-qtbase-devel \
2020-01-27 19:58:12 +01:00
devtoolset-8-libatomic-devel tcl-devel tcl tk libstdc++ tk-devel pcre-devel \
2020-11-03 03:15:35 +01:00
python36u python36u-libs python36u-devel python36u-pip && \
2020-01-27 19:58:12 +01:00
yum clean -y all && \
rm -rf /var/lib/apt/lists/*
2020-11-03 03:15:35 +01:00
ENV CC=/opt/rh/devtoolset-8/root/usr/bin/gcc \
CPP=/opt/rh/devtoolset-8/root/usr/bin/cpp \
CXX=/opt/rh/devtoolset-8/root/usr/bin/g++ \
PATH=/opt/rh/devtoolset-8/root/usr/bin:$PATH \
LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:$LD_LIBRARY_PATH
2020-01-27 19:58:12 +01:00
# Install CMake
RUN wget https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.sh && \
chmod +x cmake-3.14.0-Linux-x86_64.sh && \
./cmake-3.14.0-Linux-x86_64.sh --skip-license --prefix=/usr/local && rm -rf cmake-3.14.0-Linux-x86_64.sh \
&& yum clean -y all
2020-11-03 03:15:35 +01:00
# Install any git version > 2.6.5
RUN yum remove -y git* && yum install -y git224
2020-01-27 19:58:12 +01:00
# Install SWIG
RUN yum remove -y swig \
&& wget https://github.com/swig/swig/archive/rel-4.0.1.tar.gz \
&& tar xfz rel-4.0.1.tar.gz \
&& rm -rf rel-4.0.1.tar.gz \
&& cd swig-rel-4.0.1 \
&& ./autogen.sh && ./configure --prefix=/usr && make -j $(nproc) && make install \
&& cd .. \
&& rm -rf swig-rel-4.0.1
2019-01-17 00:38:22 +01:00
# download CUDD
2020-01-27 19:58:12 +01:00
# RUN wget https://www.davidkebo.com/source/cudd_versions/cudd-3.0.0.tar.gz && \
# tar -xvf cudd-3.0.0.tar.gz && \
# rm cudd-3.0.0.tar.gz
2019-01-17 00:38:22 +01:00
# install CUDD
2020-01-27 19:58:12 +01:00
# RUN cd cudd-3.0.0 && \
# mkdir ../cudd && \
# ./configure --prefix=$HOME/cudd && \
# make && \
# make install
FROM base-dependencies AS builder
COPY . /OpenSTA
WORKDIR /OpenSTA
# Build
RUN mkdir build
#RUN cd buld && cmake .. -DCUDD=$HOME/cudd
RUN cd build && cmake ..
2020-11-03 03:15:35 +01:00
RUN make -j 8
2019-01-17 00:38:22 +01:00
# Run sta on entry
2019-01-17 23:21:33 +01:00
ENTRYPOINT ["OpenSTA/app/sta"]