Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update samples to Gramine v1.7 #599

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading