rune/libenlave/skeleton: Update README for usage
@@ -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
```
