Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
GCdePaula committed Dec 22, 2024
1 parent e3e151f commit b093304
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prt/tests/rollups/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COPY ./cartesi-rollups /app/cartesi-rollups
WORKDIR /app/cartesi-rollups/node
RUN cargo build --release --bin dave-rollups

FROM --platform=linux/amd64 cartesi/machine-emulator:0.18.1
FROM cartesi/machine-emulator:0.18.1

USER root
RUN apt-get update && \
Expand Down
9 changes: 6 additions & 3 deletions prt/tests/rollups/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
ECHO_MACHINE_PATH := "/root/program/echo-program"

help:
@echo ' build-echo - build echo machine image'
@echo ' create-image - create `prt-rollups:test` docker image'
@echo ' test-echo - run PRT rollups echo test'

create-image:
build-echo:
$(MAKE) -C program/echo build-echo

create-image: build-echo
@docker build -t cartesi/prt-rollups:test -f Dockerfile ../../../

test-echo: create-image
Expand All @@ -14,5 +18,4 @@ test-echo: create-image




.PHONY: help create-image test-echo
.PHONY: help build-echo create-image test-echo
10 changes: 10 additions & 0 deletions prt/tests/rollups/program/echo/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ECHO_MACHINE_PATH := "/root/program/echo-program"

help:
@echo ' build-echo - build echo machine image'

build-echo:
@docker build -t echo:test .
@docker cp $(shell docker create echo:test):/echo-program.tar.gz .

.PHONY: help build-echo

0 comments on commit b093304

Please sign in to comment.