Apps are stateless Docker containers. They will be given all the information (payloads & state) they need to use at runtime from the Marketplace platform via API.
Key requirements:
Dockerfile - Docker container must use base OS image with amd64 architecture (Example)
Configurable port - Must listen to a configurable port, this port will be overridden by the platform via an environment variable named SMP_PORT
Health endpoint - The platform will ping the default /health endpoint in your container to verify health. Application must expose an endpoint /health responding to GET requests with 200 OK
State API - Apps are stateless and event driven, state is provided by AMP on each call. This state can be used to differentiate inbound requests to your app; remember that a single instance of your app can be serving multiple customers that have each configured the app with their own unique settings and product schemas. Use settings and mapping fields, defined in the manifest, to help your app be as universal as possible and serve the widest possible audiences.
Authenticate with your organizations AMP credentials
socotra-applogin
# Provide Client ID and API Key
API credentials are managed in the API Keys section of your dashboard
API credentials are managed in the API Keys section of your dashboardBuild and test example app locally (from DotNet example)
# Build project
dotnetbuild
# start and build docker container
$makedr-start-local
# test locally
$curl-d"@src/Socotra.VinLookup/Models/AutofillPayloadExamples/ExposuresPayload.json"-H"Content-Type: application/json"-XPOSThttp://127.0.0.1:10101/vehicleLookup
Deploy your container to your listing
# this cmd will increment the second digit of the version number in the `socotra-app.json`
# deploys updated version of the app to socotra marketplace
makepublish-app
Click Test Launch. Only the publishing organization can launch their draft apps.
Provide all configuration details
Your app is now running!
Congratulations, your app is deployed and running on Socotra App Marketplace! The Socotra team will guide you through the final moderation steps if you want to make it public.