Skip to content

Commit

Permalink
feat: add kurtosis package (#25)
Browse files Browse the repository at this point in the history
* feat: add kurtosis package

* feat(ci): add dockerfile lint

* chore: add newline
  • Loading branch information
MSevey committed Jul 9, 2024
1 parent 19d7b14 commit c4198c8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
- main
# Trigger on version tags
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-rc(?:[0-9]+|\.[0-9]+)'
- "v*"
pull_request:
merge_group:
workflow_dispatch:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/docker-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ on:
push:
branches:
- "main"
- "v[0-9].[0-9].x"
- "v[0-9].[0-9][0-9].x"
- "v[0-9].x"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
- "v*"
pull_request:

jobs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions kurtosis.yml
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: {}
28 changes: 28 additions & 0 deletions main.star
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

0 comments on commit c4198c8

Please sign in to comment.