Skip to content

Commit

Permalink
feat: add nginx example
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 20, 2024
1 parent 673f0d2 commit 91f7276
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build nginx-nitro image
uses: docker/build-push-action@v5
with:
context: example
push: false
load: true
tags: nginx-nitro:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build eif-builder image
uses: docker/build-push-action@v5
with:
Expand All @@ -37,7 +47,7 @@ jobs:
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd):/output \
-e DOCKER_IMAGE=hello-world:latest \
-e DOCKER_IMAGE=nginx-nitro:latest \
-e EIF_FILE=tinfoil-helper-enclave-${{ github.ref_name }}.eif \
-e INFO_FILE=tinfoil-helper-enclave-${{ github.ref_name }}-info.json \
eif-builder:latest
Expand Down
9 changes: 9 additions & 0 deletions example/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ghcr.io/tinfoilanalytics/nitro-attestation-shim AS shim
FROM nginxdemos/hello

COPY --from=shim /nitro-attestation-shim /nitro-attestation-shim

ENV NITRO_SHIM_PORT=6000
ENV NITRO_SHIM_UPSTREAM_PORT=80

ENTRYPOINT ["/nitro-attestation-shim", "nginx", "-g", "daemon off;"]

0 comments on commit 91f7276

Please sign in to comment.