Skip to content

Conversation

PierreJeanjacquot
Copy link
Member

@PierreJeanjacquot PierreJeanjacquot commented Jun 18, 2025

PoC iapp x Scone production

This poc demonstrates how iapp can create and run Scone production app instead of Scone debug apps.
This allows the builder to create production-ready apps without extra steps.

PoC usage

clone this branch and follow the instructions

git clone git@github.com:iExecBlockchainComputing/iapp.git
cd iapp
git checkout poc-scone-prod

Run the server locally

NB: the server is intended to run on a Linux host

cd api

prepare .env file

cp .env.template .env

👉 edit .env and fill in Scotain registry credentials SCONTAIN_REGISTRY_USERNAME=... and SCONTAIN_REGISTRY_PASSWORD=...

Install dependencies and run the server

npm ci
npm run start

The sconification server starts on port 3000 with an autogenerated signing key (if no one already exists)

Install the CLI

cd cli
npm ci
npm run build
npm i -g .

the CLI iapp is now installed

this version notabliy:

  • use the server running on port 3000 instead of the official server
  • use the prod SMS instead of the debug
  • use a prod workerpools instead of a debug one

Creating and running Scone prod iapps

Ensure the server is running and use the installed CLI as any previous version of iapp

  • iapp init
  • iapp test
  • iapp deploy (uses local Scone prod API + prod SMS)
  • iapp run <address> (uses prod SMS + prod workerpool)

Examples:

Copy link

🐳 Hadolint Dockerfile Lint Results

Click to expand detailed results
api/Dockerfile:4 DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

@PierreJeanjacquot
Copy link
Member Author

Scone production is released in iapp-v1.0.0-beta.5 #226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant