Skip to content

Commit

Permalink
Update samples to Gramine v1.7
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Weiße <[email protected]>
  • Loading branch information
daniel-weisse committed Aug 7, 2024
1 parent 687a78c commit e07eee0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/gramine-hello/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This example shows how to run a [Gramine](https://github.com/gramineproject/gram

## Requirements

First, install Gramine on [release v1.5](https://github.com/gramineproject/gramine/releases/tag/v1.5). You will need hardware with Intel SGX support.
First, [install Gramine](https://github.com/gramineproject/gramine/releases). You will need hardware with Intel SGX support.

Then, before you can run the example, make sure you got the prerequisites for ECDSA remote attestation installed on your system. You can collectively install them with the following command:

Expand Down
2 changes: 1 addition & 1 deletion samples/gramine-nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This example is a slightly modified variant of the [Gramine nginx example](https://github.com/gramineproject/gramine/tree/master/CI-Examples/nginx). These changes are required to run it with MarbleRun.

*Prerequisite*: Gramine is installed on [release v1.5](https://github.com/gramineproject/gramine/releases/tag/v1.5) and the original nginx example is working. You will need hardware with Intel SGX support, and the Coordinator must not run in simulation mode.
*Prerequisite*: [Gramine is installed](https://github.com/gramineproject/gramine/releases) and the [original nginx example](https://github.com/gramineproject/gramine/tree/master/CI-Examples/nginx) is working. You will need hardware with Intel SGX support, and the Coordinator must not run in simulation mode.

To marbleize the example we edited [nginx.manifest.template](nginx.manifest.template). See comments starting with `MARBLERUN` for explanations of the required changes.

Expand Down
6 changes: 3 additions & 3 deletions samples/gramine-redis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKDIR /premain/build
RUN cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
RUN make premain-libos

FROM gramineproject/gramine:v1.5 AS release
FROM gramineproject/gramine:1.7-jammy AS release
RUN apt-get update && apt-get install -y \
wget \
libssl-dev \
Expand All @@ -24,7 +24,7 @@ COPY --from=pull_gramine /gramine /gramine
COPY --from=build-premain /premain/build/premain-libos /gramine/CI-Examples/redis/
COPY ./redis-server.manifest.template ./start.sh /gramine/CI-Examples/redis/
WORKDIR /gramine/CI-Examples/redis/
ENV BUILD_TLS yes
ENV BUILD_TLS=yes
RUN --mount=type=secret,id=signingkey,dst=/root/.config/gramine/enclave-key.pem,required=true \
make clean && make SGX=1
make clean && make SGX=1 && chmod +x start.sh
ENTRYPOINT [ "/gramine/CI-Examples/redis/start.sh" ]
2 changes: 1 addition & 1 deletion samples/gramine-redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ First, we are installing MarbleRun on your cluster.
* Check Coordinator's status, this should return status `2: ready to accept manifest`.
```bash
marblerun status $MARBLERUN
marblerun status $MARBLERUN --insecure
```
* Set the [manifest](manifest.json)
Expand Down

0 comments on commit e07eee0

Please sign in to comment.