-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
73 lines (60 loc) · 2.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#FROM debian:wheezy
FROM ubuntu:20.04
ENV HOME /root
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
ENV LC_ALL C.UTF-8
# update and install dependencies
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
wget \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& apt-get update \
&& apt-get install -y \
make \
git \
curl \
&& apt-get install -y cmake \
&& apt-get install -y \
gcc-7 g++-7 gcc-7-base \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 100 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 100
RUN apt-get update && apt-get install -y \
git \
libxml2-dev \
python \
build-essential \
make \
gcc \
python-dev \
locales \
zsh \
wget \
nano
RUN echo $('gcc --version')
# # Install Zsh
RUN git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
RUN cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc && \
chsh -s /bin/zsh
# Install SystemC
RUN mkdir -p "/home/dummy/Downloads" && \
cd "/home/dummy/Downloads/" && \
wget "https://www.accellera.org/images/downloads/standards/systemc/systemc-2.3.3.tar.gz" && \
tar xfv systemc-2.3.3.tar.gz && \
cd systemc-2.3.3 && \
mkdir -p "/usr/local/systemc-2.3.3" && \
./configure --prefix=/usr/local/systemc-2.3.3/ --enable-debug --enable-pthreads && \
make -j 8 && \
make -j 8 install && \
cd ../ && \
rm -r systemc-2.3.3
ENV LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/local/systemc-2.3.3/lib-linux64"
ENV PKG_CONFIG_PATH "${PKG_CONFIG_PATH}:/usr/local/systemc-2.3.3/lib-linux64/pkgconfig"
### TODO: improve makefile to do not need this var anymore
### WE SHOULD DO NOT NEED THIS! JUST SET DUE TO THE setSC file
# COPY setSC ./
# RUN source "./setSC"
RUN apt-get clean all
CMD ["/bin/zsh"]