generated from rollkit/template-da-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add kurtosis package * feat(ci): add dockerfile lint * chore: add newline
- Loading branch information
Showing
5 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rollkit/.github/.github/actions/[email protected] | ||
|
||
dockerfile-lint: | ||
uses: rollkit/.github/.github/workflows/reuseable_dockerfile_lint.yml | ||
with: | ||
failure-threshold: "error" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: github.com/rollkit/local-da | ||
description: |- | ||
Rollkit Local DA Kurtosis package | ||
replace: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This Kurtosis package spins up a local DA | ||
|
||
def run(plan): | ||
local_da_port_number = 7980 | ||
local_da_port_spec = PortSpec( | ||
number=local_da_port_number, | ||
transport_protocol="TCP", | ||
application_protocol="http", | ||
) | ||
local_da_ports = { | ||
"jsonrpc": local_da_port_spec, | ||
} | ||
local_da = plan.add_service( | ||
name="local-da", | ||
config=ServiceConfig( | ||
image="ghcr.io/rollkit/local-da:v0.2.1", | ||
ports=local_da_ports, | ||
public_ports=local_da_ports, | ||
), | ||
) | ||
|
||
# Set the local DA address to return for rollups | ||
local_da_address = "http://{0}:{1}".format( | ||
local_da.ip_address, local_da.ports["jsonrpc"].number | ||
) | ||
|
||
return local_da_address | ||
|