incubator-teaclave-java-tee-sdk icon indicating copy to clipboard operation
incubator-teaclave-java-tee-sdk copied to clipboard

docker image environment

Open xd0419 opened this issue 2 years ago • 3 comments

镜像teaclave/teaclave-java-tee-sdk:v0.1.0-ubuntu18.04是如何构建的?我使用了ghcr.io/graalvm/native-image:ol8-java11-22镜像,里边包含graalvm22-ce-java11和native-image,使用mvn -Pnative clean package命令编译helloworld项目时无法成功,我只想试验MOCK_IN_JVM模式,编译时还缺少什么其他必要组件吗?编译时报错内容如下,使用本项目提供的docker镜像编译相同代码的helloworld项目时没有这个错误: How is the image teaclave/teaclave-java-tee-sdk:v0.1.0-ubuntu18.04 built? I used the ghcr.io/graalvm/native-image:ol8-java11-22 image, which contains graalvm22-ce-java11 and native-image, and when I use the mvn -Pnative clean package command to compile the helloworld project it does not I just want to test the MOCK_IN_JVM mode, is there any other necessary component missing when compiling? The compile time error is as follows. This error is not present when compiling a helloworld project with the same code using the docker image provided with this project: image

xd0419 avatar May 30 '23 14:05 xd0419

如果您只想运行MOCK_IN_JVM模式,请试试将sample工程里面的pom.xml文件<org.apache.teaclave.javasdk.platform>MOCK_IN_SVM:TEE_SDK</org.apache.teaclave.javasdk.platform>修改成<org.apache.teaclave.javasdk.platform>MOCK_IN_JVM</org.apache.teaclave.javasdk.platform>试试.另外,docker的构建过程请见: https://github.com/apache/incubator-teaclave-java-tee-sdk/blob/master/tools/cicd/ubuntu-18.04/dockerfile_build 有任何问题请继续反馈。

superajun-wsj avatar May 31 '23 02:05 superajun-wsj

我在我自己构建的镜像中,修改了<org.apache.teaclave.javasdk.platform>MOCK_IN_JVM</org.apache.teaclave.javasdk.platform>,但仍然会出现错误:

Fatal error: com.oracle.svm.core.util.VMError$HostedError: Option name "CompilationWatchDogStartDelay" has multiple definitions: org.graalvm.compiler.core.CompilationWatchDog$Options.CompilationWatchDogStartDelay and org.graalvm.compiler.hotspot.CompilationWatchDog$Options.CompilationWatchDogStartDelay

这个错误似乎是因为两个定义有冲突,但在你构建的ubuntu镜像中没有这个问题,MOCK_IN_JVM模式下运行成功除了依赖graalvmnative-image,是否还需要其他安装库?

xd0419 avatar May 31 '23 03:05 xd0419

应该会有其他依赖,你看下dockerfile文件(https://github.com/apache/incubator-teaclave-java-tee-sdk/blob/master/tools/cicd/ubuntu-18.04/dockerfile_build)

superajun-wsj avatar Jun 01 '23 03:06 superajun-wsj