[dockerfiles] Install dcap lib in Occlum docker images
This commit is contained in:
		
							parent
							
								
									637dc73b1b
								
							
						
					
					
						commit
						4c99c875e7
					
				| @ -179,6 +179,10 @@ COPY --from=alpine /usr/lib/jvm/java-1.8-openjdk $JDK8_PATH | ||||
| RUN rm $JDK8_PATH/jre/lib/security/cacerts | ||||
| COPY --from=alpine /etc/ssl/certs/java/cacerts $JDK8_PATH/jre/lib/security/cacerts | ||||
| 
 | ||||
| # Install Occlum dcap lib | ||||
| WORKDIR /root/occlum/tools/toolchains | ||||
| RUN cd dcap_lib && ./build.sh | ||||
| 
 | ||||
| ENV LD_LIBRARY_PATH="/opt/intel/sgxpsw/aesm:/usr/lib64/:/usr/local/lib:/opt/intel/sgxsdk/sdk_libs:/usr/lib:$LD_LIBRARY_PATH" | ||||
| # Build and install Occlum | ||||
| WORKDIR /root | ||||
|  | ||||
| @ -162,6 +162,10 @@ COPY --from=alpine /usr/lib/jvm/java-1.8-openjdk $JDK8_PATH | ||||
| RUN rm $JDK8_PATH/jre/lib/security/cacerts | ||||
| COPY --from=alpine /etc/ssl/certs/java/cacerts $JDK8_PATH/jre/lib/security/cacerts | ||||
| 
 | ||||
| # Install Occlum dcap lib | ||||
| WORKDIR /root/occlum/tools/toolchains | ||||
| RUN cd dcap_lib && ./build.sh | ||||
| 
 | ||||
| # Build and install Occlum | ||||
| WORKDIR /root | ||||
| RUN cd occlum && \ | ||||
|  | ||||
| @ -179,6 +179,10 @@ COPY --from=alpine /usr/lib/jvm/java-1.8-openjdk $JDK8_PATH | ||||
| RUN rm $JDK8_PATH/jre/lib/security/cacerts | ||||
| COPY --from=alpine /etc/ssl/certs/java/cacerts $JDK8_PATH/jre/lib/security/cacerts | ||||
| 
 | ||||
| # Install Occlum dcap lib | ||||
| WORKDIR /root/occlum/tools/toolchains | ||||
| RUN cd dcap_lib && ./build.sh | ||||
| 
 | ||||
| WORKDIR /root | ||||
| RUN cd occlum && \ | ||||
|     source /opt/intel/sgxsdk/environment && \ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user