Skip to content

Commit

Permalink
feat: transition to Cartesi application templates
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Apr 29, 2024
1 parent a5a1c16 commit dc2f4b2
Show file tree
Hide file tree
Showing 29 changed files with 35 additions and 35 deletions.
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) 2023 Cartesi

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 DApps. 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

0 comments on commit dc2f4b2

Please sign in to comment.