Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to Cartesi application templates #39

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
name: sunodo build
name: build
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -34,15 +34,15 @@ jobs:
with:
node-version: current

- name: Install Sunodo
run: npm install -g @sunodo/cli
- name: Install Cartesi CLI
run: npm install -g @cartesi/cli

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Check system requirements
run: sunodo doctor
run: cartesi doctor

- name: Build
run: sunodo build
run: cartesi build
working-directory: ${{ matrix.template }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Sunodo
Copyright (c) 2024 Cartesi and individual contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Sunodo Templates
# Cartesi Application Templates

Template projects for Sunodo DApps. This repository is used by the Sunodo CLI to create new applications from a specified template project.
Template projects for Cartesi applications. This repository is used by the Cartesi CLI to create new applications from a specified template project.
2 changes: 1 addition & 1 deletion cpp-low-level/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
dapp
2 changes: 1 addition & 1 deletion cpp-low-level/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
dapp
4 changes: 2 additions & 2 deletions cpp-low-level/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apt-get install -y --no-install-recommends \
rm -rf /var/lib/apt/lists/*
EOF

COPY --from=sunodo/sdk:0.3.0 /opt/riscv /opt/riscv
COPY --from=cartesi/sdk:0.6.0 /opt/riscv /opt/riscv
WORKDIR /opt/cartesi/dapp
COPY . .
RUN make
Expand All @@ -28,7 +28,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion cpp/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
dapp
2 changes: 1 addition & 1 deletion cpp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
dapp
2 changes: 1 addition & 1 deletion cpp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion go/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
dapp
2 changes: 1 addition & 1 deletion go/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
dapp
2 changes: 1 addition & 1 deletion go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion javascript/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.sunodo
.cartesi
/dist
/node_modules
2 changes: 1 addition & 1 deletion javascript/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.sunodo
.cartesi
/dist
/node_modules
2 changes: 1 addition & 1 deletion javascript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion lua/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.sunodo
.cartesi
2 changes: 1 addition & 1 deletion lua/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.sunodo
.cartesi
2 changes: 1 addition & 1 deletion lua/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion python/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
.venv
2 changes: 1 addition & 1 deletion python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion ruby/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.sunodo
.cartesi
2 changes: 1 addition & 1 deletion ruby/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.bundle
.sunodo
.cartesi
2 changes: 1 addition & 1 deletion ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion rust/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
target
2 changes: 1 addition & 1 deletion rust/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sunodo
.cartesi
target
2 changes: 1 addition & 1 deletion rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion typescript/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.sunodo
.cartesi
/dist
/node_modules
2 changes: 1 addition & 1 deletion typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.sunodo
.cartesi
/dist
/node_modules
src/schema.d.ts
2 changes: 1 addition & 1 deletion typescript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHI
RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \
&& rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb

LABEL io.sunodo.sdk_version=0.4.0
LABEL io.cartesi.rollups.sdk_version=0.6.0
LABEL io.cartesi.rollups.ram_size=128Mi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down
Loading