blob: 26c11ffd02499af8ad969b0dfa551d0ac5efdb20 [file] [log] [blame] [edit]
# syntax = docker/dockerfile:1.0-experimental
FROM centos:centos6 as build
# Common development tools and libraries (kitchen sink approach)
RUN yum groupinstall -y "Development Tools" "Development Libraries"
# magic dependencies
RUN yum install -y csh wget tcl-devel tk-devel libX11-devel cairo-devel ncurses-devel
# git clone magic components
RUN git clone https://github.com/RTimothyEdwards/magic.git
#RUN git clone https://github.com/The-OpenROAD-Project/magic.git
WORKDIR "magic"
RUN git checkout magic-8.2
# build
RUN ./configure --prefix=/build && \
make -j4 && \
make install
RUN mkdir -p /build/version/
RUN date +"Build Timestamp: %Y-%m-%d_%H-%M-%S" > /build/version/magic.version
RUN git rev-parse HEAD >> /build/version/magic.version
RUN tar -czf /build.tar.gz /build