blob: c7f486ca736ce7b95dcb06739e7e0c0d8a39d1f3 [file] [log] [blame]
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y autoconf automake bison build-essential cmake curl dpkg-dev expect flex gcc-8 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 ocamlbuild pkg-config protobuf-compiler python sudo systemd-sysv texinfo uuid-dev vim wget dkms gnupg2 apt-transport-https software-properties-common && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/archives/*
#ENV BINUTILS_DIST="ubuntu18.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="INTEL_BUILT"
#ENV SDK_URL="https://download.01.org/intel-sgx/sgx-linux/2.11/distro/ubuntu18.04-server/sgx_linux_x64_sdk_2.11.100.2.bin"
ENV SDK_DIST="SELF_BUILT"
ADD 03_sdk.sh /root
RUN bash /root/03_sdk.sh
# Sixth, PSW
ENV CODENAME bionic
ENV VERSION 2.11.100.2-bionic1
ENV DCAP_VERSION 1.8.100.2-bionic1
ADD 04_psw.sh /root
RUN bash /root/04_psw.sh
# Seventh, Rust
ENV rust_toolchain nightly-2020-09-10
ADD 05_rust.sh /root
RUN bash /root/05_rust.sh
ENV DEBIAN_FRONTEND=
ENV CODENAME=
ENV VERSION=
WORKDIR /root