npm run buildbuilds todist/npm run startruns the compiled outputnpm run devwatches and rebuilds on changesnpm run renderpreview the output of a composite resource after applying any composition functions
Use Docker to build a runtime for each platform.
docker build --platform=linux/amd64 -t runtime-amd64 .
docker build --platform=linux/arm64 -t runtime-arm64 . Use the Crossplane CLI to build a package for each platform. Each package embeds a runtime image
crossplane xpkg build \
--package-root=package \
--embed-runtime-image=runtime-amd64 \
--package-file=function-amd64.xpkg
crossplane xpkg build \
--package-root=package \
--embed-runtime-image=runtime-arm64 \
--package-file=function-arm64.xpkgPush both package files to a registry
crossplane xpkg push \
--package-files=function-amd64.xpkg,function-arm64.xpkg \
tiagat/function-template-node-runtime:v0.0.10