Skip to content

Commit

Permalink
add cadence virtuoso (IC); tidy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
limerainne committed Aug 21, 2018
1 parent e29b3bf commit 71c514d
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 22 deletions.
69 changes: 69 additions & 0 deletions Dockerfile_Cadence_IC
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
FROM ubuntu:18.04 AS installer
ARG repo_sed=s#://archive.ubuntu.com#://kr.archive.ubuntu.com#g

# Java 6+ might be required to run the installer
RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends openjdk-8-jre \
&& rm -rf /var/lib/apt/lists/*

# information of the tool to be installed in this image
# TODO how to deduplicate below arguments declaration
ARG base_dir=/usr/cadence
ARG tool=IC
ARG version=617

ARG installer_dir=InstallScape


# copy installer and installation package temporarily
COPY package/${installer_dir} /tmp/installer/
COPY package/${tool}${version} /tmp/package/

# batch install target package
RUN mkdir -p ${base_dir}/ \
&& /tmp/installer/iscape/bin/iscape.sh -batch majorAction=InstallFromArchive \
archiveDirectory=/tmp/package/ installDirectory=${base_dir}/${tool}${version} \
&& rm -rf /tmp/package/ \
&& rm -rf /tmp/installer/


# NOTE using multi-stage image build; avoid including installer package in the final image
FROM ubuntu:18.04
ARG repo_sed=s#://archive.ubuntu.com#://kr.archive.ubuntu.com#g

# Java 6+ might be required to run actual software
RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends openjdk-8-jre \
&& rm -rf /var/lib/apt/lists/*

# install required library to run Cadence tool and X11 library to show GUI
RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y --no-install-recommends libxtst6:i386 libxext6:i386 libxi6:i386 ksh csh \
&& apt-get install -y --no-install-recommends xserver-xorg-video-dummy xserver-xorg-input-void xserver-xorg-core xinit x11-xserver-utils \
&& rm -rf /var/lib/apt/lists/*
# # using somewhat lighter X11 package rather than xorg; 'x11-apps' is not applicable
# ref: https://git.devuan.org/dev1fanboy/Upgrade-Install-Devuan/wikis/minimal-xorg-install

# copy actual tool to be run in this image
ARG base_dir=/usr/cadence
ARG tool=IC
ARG version=617

# just copy installed package from intermediate image
COPY --from=installer ${base_dir}/ ${base_dir}/

# set path to the tool executable
ENV PATH ${base_dir}/${tool}${version}/tools/bin:$PATH

# let 64-bit binary to be executed
ENV CDS_AUTO_64BIT "ALL"
# force set environment for OpenAccess
ENV OA_UNSUPPORTED_PLAT "linux_rhel50_gcc48x"

# set path to the tool executable
CMD "virtuoso"

6 changes: 2 additions & 4 deletions Dockerfile_Cadence_NC
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN mkdir -p ${base_dir}/ \
&& rm -rf /tmp/installer/


# NOTE using multi-stage image build; avoid installer package from included in the final image
# NOTE using multi-stage image build; avoid including installer package in the final image
FROM ubuntu:14.04
ARG repo_sed=s#://archive.ubuntu.com#://kr.archive.ubuntu.com#g

Expand All @@ -53,8 +53,6 @@ ARG base_dir=/usr/cadence
ARG tool=INCISIVE
ARG version=15

ARG default_command=nclaunch # or irun

# just copy installed package from intermediate image
COPY --from=installer ${base_dir}/ ${base_dir}/

Expand All @@ -66,5 +64,5 @@ ENV CDS_AUTO_64BIT "ALL"


# set path to the tool executable
CMD "${default_command}"
CMD "nclaunch" # or irun

10 changes: 5 additions & 5 deletions Dockerfile_Synopsys_DC
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
# TODO how to deduplicate below arguments declaration
ARG base_dir=/usr/synopsys
ARG tool=syn
ARG version=L-2016.03-SP5-5
ARG version=N-2017.09-SP2

ARG installer_version=v3.2
ARG installer_version=v4.1


# copy installer and installation package temporarily
Expand All @@ -29,7 +29,7 @@ RUN mkdir -p ${base_dir} \
&& rm -rf ${base_dir}/installer_${installer_version}


# NOTE using multi-stage image build; avoid installer package from included in the final image
# NOTE using multi-stage image build; avoid including installer package in the final image
FROM ubuntu:18.04
ARG repo_sed=s#://archive.ubuntu.com#://kr.archive.ubuntu.com#g

Expand All @@ -45,7 +45,7 @@ RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
&& rm -rf /var/lib/apt/lists/*
# # using somewhat lighter X11 package rather than xorg; 'x11-apps' is not applicable
# ref: https://git.devuan.org/dev1fanboy/Upgrade-Install-Devuan/wikis/minimal-xorg-install
# # WORKAROUND install libpng12-0 package from Xenial removed from Bionic
# # WORKAROUND install libpng12-0 package from Xenial, which is removed from Bionic
# ref: https://www.linuxuprising.com/2018/05/fix-libpng12-0-missing-in-ubuntu-1804.html

# WORKAROUND link outdated library files required from Synopsys tools
Expand All @@ -57,7 +57,7 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libti
# copy actual tool to be run in this image
ARG base_dir=/usr/synopsys
ARG tool=syn
ARG version=L-2016.03-SP5-5
ARG version=N-2017.09-SP2


# just copy installed package from intermediate image
Expand Down
14 changes: 7 additions & 7 deletions Dockerfile_Synopsys_ICC
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
# information of the tool to be installed in this image
# TODO how to deduplicate below arguments declaration
ARG base_dir=/usr/synopsys
ARG tool=icc
ARG version=L-2016.03-SP5-2
ARG tool=ic_compiler
ARG version=N-2017.09

ARG installer_version=v3.2
ARG installer_version=v4.1


# copy installer and installation package temporarily
Expand All @@ -29,7 +29,7 @@ RUN mkdir -p ${base_dir} \
&& rm -rf ${base_dir}/installer_${installer_version}


# NOTE using multi-stage image build; avoid installer package from included in the final image
# NOTE using multi-stage image build; avoid including installer package in the final image
FROM ubuntu:18.04
ARG repo_sed=s#://archive.ubuntu.com#://kr.archive.ubuntu.com#g

Expand All @@ -45,7 +45,7 @@ RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
&& rm -rf /var/lib/apt/lists/*
# # using somewhat lighter X11 package rather than xorg; 'x11-apps' is not applicable
# ref: https://git.devuan.org/dev1fanboy/Upgrade-Install-Devuan/wikis/minimal-xorg-install
# # WORKAROUND install libpng12-0 package from Xenial removed from Bionic
# # WORKAROUND install libpng12-0 package from Xenial, which is removed from Bionic
# ref: https://www.linuxuprising.com/2018/05/fix-libpng12-0-missing-in-ubuntu-1804.html

# WORKAROUND link outdated library filename required from Synopsys tools
Expand All @@ -56,8 +56,8 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libti

# copy actual tool to be run in this image
ARG base_dir=/usr/synopsys
ARG tool=icc
ARG version=L-2016.03-SP5-2
ARG tool=ic_compiler
ARG version=N-2017.09

ARG default_command=icc_shell

Expand Down
13 changes: 7 additions & 6 deletions Dockerfile_Synopsys_VCS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NOTE hmm... VCS did not operates smoothly in native Ubuntu 17.04/10... OK for 16.04
# TODO hmm... VCS did not operates smoothly in native Ubuntu 17.04/10... OK for 16.04

FROM ubuntu:18.04 AS installer
ARG repo_sed=s#://archive.ubuntu.com#://kr.archive.ubuntu.com#g
Expand All @@ -13,9 +13,9 @@ RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
# TODO how to deduplicate below arguments declaration
ARG base_dir=/usr/synopsys
ARG tool=vcs
ARG version=L-2016.06-SP2-3
ARG version=N-2017.12

ARG installer_version=v3.2
ARG installer_version=v4.1


# copy installer and installation package temporarily
Expand All @@ -31,7 +31,7 @@ RUN mkdir -p ${base_dir} \
&& rm -rf ${base_dir}/installer_${installer_version}


# NOTE using multi-stage image build; avoid installer package from included in the final image
# NOTE using multi-stage image build; avoid including installer package in the final image
FROM ubuntu:18.04
ARG repo_sed=s#://archive.ubuntu.com#://kr.archive.ubuntu.com#g

Expand All @@ -47,7 +47,7 @@ RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
&& rm -rf /var/lib/apt/lists/*
# # using somewhat lighter X11 package rather than xorg; 'x11-apps' is not applicable
# ref: https://git.devuan.org/dev1fanboy/Upgrade-Install-Devuan/wikis/minimal-xorg-install
# # WORKAROUND install libpng12-0 package from Xenial removed from Bionic
# # WORKAROUND install libpng12-0 package from Xenial, which is removed from Bionic
# ref: https://www.linuxuprising.com/2018/05/fix-libpng12-0-missing-in-ubuntu-1804.html

# WORKAROUND link outdated library filename required from Synopsys tools
Expand All @@ -59,7 +59,8 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libti
# copy actual tool to be run in this image
ARG base_dir=/usr/synopsys
ARG tool=vcs
ARG version=L-2016.06-SP2-3
ARG version=N-2017.12



# just copy installed package from intermediate image
Expand Down

0 comments on commit 71c514d

Please sign in to comment.