Skip to content

Commit

Permalink
fix: add cgroup&mountinfo for docker env
Browse files Browse the repository at this point in the history
  • Loading branch information
johntaiko committed Sep 29, 2024
1 parent 00e2374 commit a5ba91e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /opt/raiko
COPY . .
RUN cargo build --release ${BUILD_FLAGS} --features "sgx" --features "docker_build"

FROM gramineproject/gramine:1.6-jammy AS runtime
FROM gramineproject/gramine:1.7-jammy AS runtime
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /opt/raiko

Expand Down
2 changes: 2 additions & 0 deletions provers/sgx/config/sgx-guest.docker.manifest.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ fs.mounts = [
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
{ path = "/usr/lib/ssl/certs/", uri = "file:/usr/lib/ssl/certs/" },
{ path = "/root/.config/raiko/config", uri = "file:/root/.config/raiko/config" },
{ path = "/proc/self/mountinfo", uri = "file:/proc/self/mountinfo" },
{ path = "/proc/self/cgroup", uri = "file:/proc/self/cgroup" },
{ path = "/root/.config/raiko/secrets", uri = "file:/root/.config/raiko/secrets", type = "encrypted", key_name = "_sgx_mrenclave" },
]
sgx.allowed_files = [
Expand Down

0 comments on commit a5ba91e

Please sign in to comment.