forked from apache/incubator-teaclave-sgx-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.1604.nightly
50 lines (38 loc) · 1.64 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
49
50
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 texinfo uuid-dev vim wget zlib1g-dev dkms gnupg2 apt-transport-https software-properties-common && \
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/*
#ENV BINUTILS_DIST="ubuntu16.04"
ENV BINUTILS_DIST="SELF_BUILT"
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
ENV LD_RUN_PATH=/usr/lib:/usr/local/lib
ADD 02_binutils.sh /root
RUN bash /root/02_binutils.sh
ENV SDK_DIST="SELF_BUILT"
ADD 03_sdk.sh /root
RUN bash /root/03_sdk.sh
# Sixth, PSW
ENV CODENAME xenial
ENV VERSION 2.12.100.3-xenial1
ENV DCAP_VERSION 1.9.100.3-xenial1
ADD 04_psw.sh /root
RUN bash /root/04_psw.sh
# Seventh, Rust
ENV rust_toolchain nightly-2020-10-25
ADD 05_rust.sh /root
RUN bash /root/05_rust.sh
ENV rust_toolchain=
ENV CODENAME=
ENV VERSION=
WORKDIR /root