Fix docker image for SGX1 HW

This commit is contained in:
zongmin.gu 2021-03-05 11:15:25 +08:00 committed by Zongmin.Gu
parent 3b52c90104
commit 27500f0461
2 changed files with 4 additions and 1 deletions

@ -123,6 +123,8 @@ RUN echo "ca_directory=/etc/ssl/certs" >> /etc/wgetrc && \
libsgx-uae-service*.rpm \ libsgx-uae-service*.rpm \
libsgx-epid*.rpm \ libsgx-epid*.rpm \
libsgx-launch*.rpm \ libsgx-launch*.rpm \
libsgx-ae-le-*.rpm \
libsgx-aesm-launch-plugin-*.rpm \
sgx-aesm-service*.rpm && \ sgx-aesm-service*.rpm && \
rm -rf /tmp/sgx_rpm_local_repo rm -rf /tmp/sgx_rpm_local_repo

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# Start AESM service required by Intel SGX SDK if it is not running # Start AESM service required by Intel SGX SDK if it is not running
if ! pgrep "aesm_service" > /dev/null ; then if ! pgrep "aesm_service" > /dev/null ; then
LD_LIBRARY_PATH="/opt/intel/sgx-aesm-service/aesm:$LD_LIBRARY_PATH" /opt/intel/sgx-aesm-service/aesm/aesm_service --no-daemon LD_LIBRARY_PATH="/opt/intel/sgx-aesm-service/aesm:$LD_LIBRARY_PATH" nohup /opt/intel/sgx-aesm-service/aesm/aesm_service --no-daemon >/dev/null 2>&1 &
fi fi