blob: 5c4a8676e7c9d4c4776b1277398d01db10eda10c [file] [log] [blame]
FROM fedora:27
RUN yum install -y yum-utils bzip2 ocaml ocaml-ocamlbuild wget python2 openssl-devel git protobuf-devel ncurses-devel libtool automake redhat-rpm-config rpm-build cmake perl && \
yum-builddep gcc binutils -y && \
yum groupinstall -y 'C Development Tools and Libraries'
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 PSW_REPO=https://download.01.org/intel-sgx/sgx-linux/2.9.1/distro/fedora27-server/sgx_rpm_local_repo.tgz
RUN curl --output /root/repo.tgz $PSW_REPO && \
cd /root && \
tar xzf repo.tgz && \
cd sgx_rpm_local_repo && \
rpm -ivh ./*.rpm && \
cd /root && \
rm -rf sgx_rpm_local_repo
# 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=
ENV PSW_REPO=
WORKDIR /root