Skip to content

Commit

Permalink
feat(sdk): add espresso-dev-node
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmaia committed Oct 1, 2024
1 parent 3a58ad0 commit bfe1fd4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-walls-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cartesi/sdk": minor
---

add espresso-dev-node binary
6 changes: 6 additions & 0 deletions packages/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ ARG SERVER_MANAGER_VERSION
ARG CARTESI_IMAGE_KERNEL_VERSION
ARG LINUX_KERNEL_VERSION
ARG XGENEXT2_VERSION
ARG ESPRESSO_DEV_NODE_TAG

# https://github.com/EspressoSystems/espresso-sequencer/pkgs/container/espresso-sequencer%2Fespresso-dev-node
FROM ghcr.io/espressosystems/espresso-sequencer/espresso-dev-node:${ESPRESSO_DEV_NODE_TAG} AS espresso-dev-node

Check warning on line 12 in packages/sdk/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ghcr.io/espressosystems/espresso-sequencer/espresso-dev-node:${ESPRESSO_DEV_NODE_TAG} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

FROM ${BASE_IMAGE} AS builder

Check warning on line 14 in packages/sdk/Dockerfile

View workflow job for this annotation

GitHub Actions / build

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Expand Down Expand Up @@ -145,5 +149,7 @@ ADD --chmod=644 \
RUN tar -xJf /usr/share/cartesi-machine/images/linux-headers.tar.xz -C / && \
rm /usr/share/cartesi-machine/images/linux-headers.tar.xz

COPY --from=espresso-dev-node /usr/bin/espresso-dev-node /usr/bin/

WORKDIR /mnt
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
1 change: 1 addition & 0 deletions packages/sdk/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ target "default" {
DEVNET_VERSION = "1.8.0"
LINUX_KERNEL_VERSION = "6.5.9-ctsi-1-v0.19.1"
XGENEXT2_VERSION = "1.5.6"
ESPRESSO_DEV_NODE_TAG = "20240925"
}
}

0 comments on commit bfe1fd4

Please sign in to comment.