提交 fb4c4f97 编写于 作者: jia zhang's avatar jia zhang

rune/libenlave/skeleton: Update README for usage

Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 b2acc407
......@@ -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.
# 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
```shell
cd "$GOPATH/src/github.com/alibaba/inclavare-containers/rune"
make all
cd "${path_to_inclavare_containers}/rune/libenclave/internal/runtime/pal/skeleton"
make
```
# Build skeleton docker image
```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
FROM centos:7.2.1511
......@@ -21,6 +21,10 @@ WORKDIR /run/rune
RUN yum install -y libseccomp-devel
COPY liberpal-skeleton.so .
COPY encl.bin .
COPY encl.elf .
COPY encl.ss .
COPY encl.token .
RUN ldconfig
EOF
......@@ -32,6 +36,6 @@ docker build . -t liberpal-skeleton
docker run -it --rm --runtime=rune \
-e ENCLAVE_TYPE=intelSgx \
-e ENCLAVE_RUNTIME_PATH=/run/rune/liberpal-skeleton.so \
-e ENCLAVE_RUNTIME_ARGS="skeleton,debug" \
-e ENCLAVE_RUNTIME_ARGS="debug" \
liberpal-skeleton
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册