Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
inclavare-containers
提交
fb4c4f97
I
inclavare-containers
项目概览
openanolis
/
inclavare-containers
通知
4
Star
7
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
5
列表
看板
标记
里程碑
合并请求
0
分析
仓库
DevOps
项目成员
Pages
I
inclavare-containers
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
5
Issue
5
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fb4c4f97
编写于
6月 19, 2020
作者:
jia zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rune/libenlave/skeleton: Update README for usage
Signed-off-by:
Jia Zhang
<
zhang.jia@linux.alibaba.com
>
上级
b2acc407
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
5 deletion
+9
-5
rune/libenclave/internal/runtime/pal/skeleton/README.md
rune/libenclave/internal/runtime/pal/skeleton/README.md
+9
-5
未找到文件。
rune/libenclave/internal/runtime/pal/skeleton/README.md
浏览文件 @
fb4c4f97
...
@@ -2,17 +2,17 @@ The files in this directory are used to implement a skeleton enclave runtime,
...
@@ -2,17 +2,17 @@ The files in this directory are used to implement a skeleton enclave runtime,
in order to help to write your own enclave runtime.
in order to help to write your own enclave runtime.
# Install runectl
# Install runectl
Refer to
this document:
[
runectl
](
https://github.com/alibaba/inclavare-containers/tree/master/runectl
)
Refer to
[
this guide
](
https://github.com/alibaba/inclavare-containers/tree/master/runectl
)
# Build liberpal-skeleton.so
# Build liberpal-skeleton.so
```
shell
```
shell
cd
"
$
GOPATH
/src/github.com/alibaba/inclavare-containers/rune
"
cd
"
$
{
path_to_inclavare_containers
}
/rune/libenclave/internal/runtime/pal/skeleton
"
make
all
make
```
```
# Build skeleton docker image
# Build skeleton docker image
```
shell
```
shell
cd
"
$
GOPATH
/src/github.com/alibaba/inclavare-containers
/rune/libenclave/internal/runtime/pal/skeleton"
cd
"
$
{
path_to_inclavare_containers
}
/rune/libenclave/internal/runtime/pal/skeleton"
cat
>
Dockerfile
<<
EOF
cat
>
Dockerfile
<<
EOF
FROM centos:7.2.1511
FROM centos:7.2.1511
...
@@ -21,6 +21,10 @@ WORKDIR /run/rune
...
@@ -21,6 +21,10 @@ WORKDIR /run/rune
RUN yum install -y libseccomp-devel
RUN yum install -y libseccomp-devel
COPY liberpal-skeleton.so .
COPY liberpal-skeleton.so .
COPY encl.bin .
COPY encl.elf .
COPY encl.ss .
COPY encl.token .
RUN ldconfig
RUN ldconfig
EOF
EOF
...
@@ -32,6 +36,6 @@ docker build . -t liberpal-skeleton
...
@@ -32,6 +36,6 @@ docker build . -t liberpal-skeleton
docker run
-it
--rm
--runtime
=
rune
\
docker run
-it
--rm
--runtime
=
rune
\
-e
ENCLAVE_TYPE
=
intelSgx
\
-e
ENCLAVE_TYPE
=
intelSgx
\
-e
ENCLAVE_RUNTIME_PATH
=
/run/rune/liberpal-skeleton.so
\
-e
ENCLAVE_RUNTIME_PATH
=
/run/rune/liberpal-skeleton.so
\
-e
ENCLAVE_RUNTIME_ARGS
=
"
skeleton,
debug"
\
-e
ENCLAVE_RUNTIME_ARGS
=
"debug"
\
liberpal-skeleton
liberpal-skeleton
```
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录