Skip to content

Commit

Permalink
fix Synopsys shell and Ubuntu 18.04 docker image issue (close issue #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
limerainne committed Aug 21, 2018
1 parent fa407c9 commit 9a7dc98
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Dockerfile_Synopsys_DC
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libti
&& ln -s /usr/lib/x86_64-linux-gnu/libmng.so.2 /usr/lib/x86_64-linux-gnu/libmng.so.1 \
&& update-alternatives --install /bin/sh sh /bin/bash 20

# WORKAROUND Ubuntu 18.04 does not have terminfo files in /usr/share/terminfo/
RUN cp -r /lib/terminfo/. /usr/share/terminfo/

# copy actual tool to be run in this image
ARG base_dir=/usr/synopsys
ARG tool=syn
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile_Synopsys_ICC
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,20 @@ RUN sed -i -e "${repo_sed}" /etc/apt/sources.list \
# # 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
# WORKAROUND link outdated library files required from Synopsys tools
# WORKAROUND set default shell as Bash to avoid error from script included in the tool
RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libtiff.so.3 \
&& ln -s /usr/lib/x86_64-linux-gnu/libmng.so.2 /usr/lib/x86_64-linux-gnu/libmng.so.1 \
&& update-alternatives --install /bin/sh sh /bin/bash 20

# WORKAROUND Ubuntu 18.04 does not have terminfo files in /usr/share/terminfo/
RUN cp -r /lib/terminfo/. /usr/share/terminfo/

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

ARG default_command=icc_shell


# just copy installed package from intermediate image
COPY --from=installer ${base_dir}/ ${base_dir}/
Expand All @@ -69,5 +70,5 @@ COPY --from=installer ${base_dir}/ ${base_dir}/
ENV PATH ${base_dir}/${tool}/${version}/bin:$PATH

# default command when running this image
CMD "${default_command}"
CMD "icc_shell"

4 changes: 3 additions & 1 deletion Dockerfile_Synopsys_VCS
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libti
&& ln -s /usr/lib/x86_64-linux-gnu/libmng.so.2 /usr/lib/x86_64-linux-gnu/libmng.so.1 \
&& update-alternatives --install /bin/sh sh /bin/bash 20

# WORKAROUND Ubuntu 18.04 does not have terminfo files in /usr/share/terminfo/
RUN cp -r /lib/terminfo/. /usr/share/terminfo/

# copy actual tool to be run in this image
ARG base_dir=/usr/synopsys
ARG tool=vcs
ARG version=N-2017.12



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

Expand Down

0 comments on commit 9a7dc98

Please sign in to comment.