Skip to content
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0c48b04
a working script without args
dailinsubjam Aug 8, 2025
6a3f29b
a working script without args
dailinsubjam Aug 8, 2025
5fbd417
everything works in the scripts despite the args
dailinsubjam Aug 9, 2025
5eac458
fix socat proxy script
dailinsubjam Aug 10, 2025
05e0fe2
working op-batcher inside docker-compose
dailinsubjam Aug 10, 2025
e6a64e7
rename the script to build batcher enclave image
dailinsubjam Aug 10, 2025
ff8fa8a
cleanup and profile the op-batcher-non-tee
dailinsubjam Aug 11, 2025
bdef714
use port number from env and shorten nc listener timeout as it will n…
dailinsubjam Aug 11, 2025
e329c7a
fix dasel format
dailinsubjam Aug 12, 2025
d63c533
remove uneeded ESPRESSO_RUN_ENCLAVE_TESTS
dailinsubjam Aug 12, 2025
9be23d0
merge conflicts
dailinsubjam Aug 14, 2025
f462128
fix scripts
dailinsubjam Aug 14, 2025
ebb8e76
Add op-batcher-tee image in CI (#210)
dailinsubjam Aug 20, 2025
30d4a4e
special case to common case
dailinsubjam Aug 20, 2025
2901aef
use default for op-batcher and tee for op-batcher-tee
dailinsubjam Aug 20, 2025
c048b7e
merge main
dailinsubjam Aug 20, 2025
3b31e30
fix double ports mapping
dailinsubjam Aug 20, 2025
b411171
fix batcher restart test
dailinsubjam Aug 20, 2025
d28e81a
add a script to use enclave tool
dailinsubjam Aug 21, 2025
d0f8ef1
works to some extend
dailinsubjam Aug 23, 2025
08b335e
also works for passing in arguments from cmd
dailinsubjam Aug 23, 2025
b8de972
try to upload the image
dailinsubjam Aug 23, 2025
20cd183
add my branch patter
dailinsubjam Aug 23, 2025
905e956
merge main
dailinsubjam Aug 23, 2025
69cdea0
fix dockerfile
dailinsubjam Aug 23, 2025
f1a5096
a simplified version
dailinsubjam Aug 25, 2025
dceab7e
adding packages/contracts-bedrock/forge-artifacts to op-batcher-encla…
dailinsubjam Aug 26, 2025
0c0cfc1
PCR0 registered in op-batcher-tee docker compose and add monitor for …
dailinsubjam Aug 26, 2025
ffb0016
copy deployment/ to op-batcher-enclave-target
dailinsubjam Aug 27, 2025
cb22a6d
fix docker-images
dailinsubjam Aug 27, 2025
141494e
Remove unneeded script
dailinsubjam Aug 28, 2025
47ab40f
remove unneeded script and cleanup readme
dailinsubjam Aug 28, 2025
bb3d3a7
fix overlapping ports and move long cmd of op-batcher-tee to script
dailinsubjam Aug 29, 2025
46a246b
update readme
dailinsubjam Aug 29, 2025
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
55 changes: 55 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,58 @@ jobs:
TARGET_BASE_IMAGE=alpine:3.22
TARGETOS=linux
TARGETARCH=amd64

build-op-batcher-tee:
needs: prepare-deployment
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download deployment artifacts
uses: actions/download-artifact@v4
with:
name: deployment-artifacts

- name: Copy config for op-batcher
run: |
mkdir -p packages/contracts-bedrock/lib/superchain-registry/ops/testdata/monorepo
# Copy any required config files here, or create placeholder
echo "Config prepared for op-batcher"

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_PREFIX }}/op-batcher-tee
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,prefix={{branch}}-,enable={{is_default_branch}}
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=pr-${{ github.event.number }},enable=${{ github.event_name == 'pull_request' }}

- name: Build and push OP Batcher TEE
uses: docker/build-push-action@v5
with:
context: .
file: espresso/docker/op-stack/Dockerfile
target: op-batcher-enclave-target
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
TARGET_BASE_IMAGE=alpine:3.22
TARGETOS=linux
TARGETARCH=amd64
9 changes: 9 additions & 0 deletions README_ESPRESSO.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,19 @@ docker compose down -v --remove-orphans
./scripts/prepare-allocs.sh
```

* Make sure you're on a machine with AWS Nitro Enclaves enabled. Build the enclave image.
```console
./scripts/batcher-enclave-tool-image.sh
```

* Build and start all services in the background.
```console
docker compose up --build -d
```
If you're on a machine with AWS Nitro Enclaves enabled, use the `tee` profile instead to start the enclave batcher.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add documentation about how to have AWS Nitro Enclaves enabled?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 46a246b.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is #guide-setting-up-an-enclave-enabled-nitro-ec2-instance supposed to be a clickable link?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to leave this as the last thing to do for this PR and prioritize addressing everything for the Terraform PR instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this internal links could work on github?

```console
COMPOSE_PROFILES=tee docker compose up --build -d
```

* Run the services and check the log.
```console
Expand Down
2 changes: 2 additions & 0 deletions espresso/.env
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ OPERATOR_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

L1_CHAIN_ID=11155111
L2_CHAIN_ID=22266222

COMPOSE_PROFILES=default
4 changes: 2 additions & 2 deletions espresso/docker-compose-op-geth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ services:
OP_HTTP_PORT: ${OP_HTTP_PORT:?err}
OP_ENGINE_PORT: ${OP_ENGINE_PORT:?err}
ports:
- "${OP_HTTP_PORT}"
- "${OP_ENGINE_PORT}"
- "${OP_HTTP_PORT}:${OP_HTTP_PORT}"
- "${OP_ENGINE_PORT}:${OP_ENGINE_PORT}"
Loading
Loading