forked from apache/incubator-teaclave-sgx-sdk
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.1604.nightly
48 lines (35 loc) · 1.46 KB
/
Dockerfile.1604.nightly
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
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y autoconf automake bison build-essential ca-certificates cmake curl dpkg-dev expect flex gdb git git-core gnupg kmod libboost-system-dev libboost-thread-dev libcurl4-openssl-dev libiptcdata0-dev libjsoncpp-dev liblog4cpp5-dev libprotobuf-c0-dev libprotobuf-dev libssl-dev libtool libxml2-dev ocaml pkg-config protobuf-compiler python sudo texinfo uuid-dev vim wget zlib1g-dev && \
rm -rf /var/lib/apt/lists/*
# Conditionally trust ppa:ubuntu-toolchain-r
# Use this on your own risk
RUN apt-get update && \
apt-get install build-essential software-properties-common -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get install gcc-snapshot -y && \
apt-get update && \
apt-get install gcc-8 g++-8 -y && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \
update-alternatives --config gcc && \
rm -rf /var/lib/apt/lists/*
#ADD 01_gcc_8.sh /root
#RUN bash /root/01_gcc_8.sh
ENV BINUTILS_PREFIX=/usr
ADD 02_binutils.sh /root
RUN bash /root/02_binutils.sh
ADD 03_sdk.sh /root
RUN bash /root/03_sdk.sh
# Sixth, PSW
ENV CODENAME xenial
ENV VERSION 2.9.101.2-xenial1
ADD 04_psw.sh /root
RUN bash /root/04_psw.sh
# Seventh, Rust
ENV rust_toolchain nightly-2020-04-07
ADD 05_rust.sh /root
RUN bash /root/05_rust.sh
ENV rust_toolchain=
ENV CODENAME=
ENV VERSION=
WORKDIR /root