You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by "xd0419 (via GitHub)" <gi...@apache.org> on 2023/05/30 14:58:44 UTC

[GitHub] [incubator-teaclave-java-tee-sdk] xd0419 opened a new issue, #29: docker image environment

xd0419 opened a new issue, #29:
URL: https://github.com/apache/incubator-teaclave-java-tee-sdk/issues/29

   镜像`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](https://github.com/apache/incubator-teaclave-java-tee-sdk/assets/64568730/e43c2fcb-06dc-4c5e-b686-b320a712da84)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


[GitHub] [incubator-teaclave-java-tee-sdk] superajun-wsj commented on issue #29: docker image environment

Posted by "superajun-wsj (via GitHub)" <gi...@apache.org>.
superajun-wsj commented on issue #29:
URL: https://github.com/apache/incubator-teaclave-java-tee-sdk/issues/29#issuecomment-1569383665

   如果您只想运行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
   有任何问题请继续反馈。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


[GitHub] [incubator-teaclave-java-tee-sdk] superajun-wsj commented on issue #29: docker image environment

Posted by "superajun-wsj (via GitHub)" <gi...@apache.org>.
superajun-wsj commented on issue #29:
URL: https://github.com/apache/incubator-teaclave-java-tee-sdk/issues/29#issuecomment-1571265176

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


[GitHub] [incubator-teaclave-java-tee-sdk] xd0419 commented on issue #29: docker image environment

Posted by "xd0419 (via GitHub)" <gi...@apache.org>.
xd0419 commented on issue #29:
URL: https://github.com/apache/incubator-teaclave-java-tee-sdk/issues/29#issuecomment-1569434763

   我在我自己构建的镜像中,修改了`<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模式下运行成功除了依赖`graalvm`和`native-image`,是否还需要其他安装库?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org