Skip to content

tiagat/function-template-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

function-template-node

Scripts

  • npm run build builds to dist/
  • npm run start runs the compiled output
  • npm run dev watches and rebuilds on changes
  • npm run render preview the output of a composite resource after applying any composition functions

Build and push the function to a package registry

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

Push 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors