[dockerfile] Add grpc_ratls build and install in Occlum dockerfile

This commit is contained in:
Zheng, Qi 2023-02-28 17:32:22 +08:00 committed by volcano
parent 1a50b8a66b
commit b7c5e883d5

@ -183,6 +183,7 @@ COPY --from=alpine /usr/lib/jvm/java-1.8-openjdk $JDK8_PATH
RUN rm $JDK8_PATH/jre/lib/security/cacerts RUN rm $JDK8_PATH/jre/lib/security/cacerts
COPY --from=alpine /etc/ssl/certs/java/cacerts $JDK8_PATH/jre/lib/security/cacerts COPY --from=alpine /etc/ssl/certs/java/cacerts $JDK8_PATH/jre/lib/security/cacerts
# Install Occlum
WORKDIR /root WORKDIR /root
RUN cd occlum && \ RUN cd occlum && \
source /opt/intel/sgxsdk/environment && \ source /opt/intel/sgxsdk/environment && \
@ -192,6 +193,11 @@ RUN cd occlum && \
cp -r demos /root/demos && \ cp -r demos /root/demos && \
rm -rf /root/occlum rm -rf /root/occlum
# Install GRPC RATLS
# Do after installing Occlum is because it depends on the dcap library.
WORKDIR /tmp
RUN cd grpc_ratls && ./build.sh && rm -rf /tmp/grpc_ratls
# Start AESM service automatically # Start AESM service automatically
# #
# To do so, we add the script to ~/.bashrc. We cannot use systemd to run AESM # To do so, we add the script to ~/.bashrc. We cannot use systemd to run AESM