Fix bugs that fail CentOS Dockerfile

This commit is contained in:
He Sun 2020-02-13 16:26:52 +08:00 committed by Tate, Hongliang Tian
parent 2372ef0d4e
commit cfa6532768
4 changed files with 10 additions and 7 deletions

@ -22,7 +22,7 @@ else ifeq ($(findstring -m32, $(CXXFLAGS)), -m32)
SGX_ARCH := x86
endif
SGX_COMMON_CFLAGS := -Wall
SGX_COMMON_CFLAGS := -Wall -std=gnu11
ifeq ($(SGX_ARCH), x86)
SGX_COMMON_CFLAGS += -m32

@ -60,11 +60,12 @@ RUN git clone -b sgx_2.7.1_for_occlum https://github.com/occlum/linux-sgx && \
rm -rf /tmp/linux-sgx
# Install Rust
ENV PATH="/root/.cargo/bin:$PATH"
ENV OCCLUM_RUST_VERSION=nightly-2019-11-25
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain ${OCCLUM_RUST_VERSION} -y && \
rm -rf /root/.cargo/registry && rm -rf /root/.cargo/git
ENV PATH="/root/.cargo/bin:$PATH"
rm -rf /root/.cargo/registry && rm -rf /root/.cargo/git && \
cargo -V
# Upgrade gcc to compile occlum toolchain.
# Use Developer Toolset 8 from Software Collections (SCLs) to have a newer gcc (8.3.1) than

@ -60,11 +60,12 @@ RUN git clone -b sgx_2.7.1_for_occlum https://github.com/occlum/linux-sgx && \
rm -rf /tmp/linux-sgx
# Install Rust
ENV PATH="/root/.cargo/bin:$PATH"
ENV OCCLUM_RUST_VERSION=nightly-2019-11-25
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain ${OCCLUM_RUST_VERSION} -y && \
rm -rf /root/.cargo/registry && rm -rf /root/.cargo/git
ENV PATH="/root/.cargo/bin:$PATH"
rm -rf /root/.cargo/registry && rm -rf /root/.cargo/git && \
cargo -V
# Install Occlum toolchain
COPY toolchains/gcc/* /tmp/

@ -62,11 +62,12 @@ RUN git clone -b sgx_2.7.1_for_occlum https://github.com/occlum/linux-sgx && \
rm -rf /tmp/linux-sgx
# Install Rust
ENV PATH="/root/.cargo/bin:$PATH"
ENV OCCLUM_RUST_VERSION=nightly-2019-11-25
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain ${OCCLUM_RUST_VERSION} -y && \
rm -rf /root/.cargo/registry && rm -rf /root/.cargo/git
ENV PATH="/root/.cargo/bin:$PATH"
rm -rf /root/.cargo/registry && rm -rf /root/.cargo/git && \
cargo -V
# Install Occlum toolchain
COPY toolchains/gcc/* /tmp/