akkasls-scripts
This package includes scripts and configuration used by the create-akkasls-entity
tool.
Configuration is pulled from the config
section of your project's package.json
, and the command will fail if any required configuration is not present. For example:
{
...
"config": {
"dockerImage": "my-docker-repo/my-image",
"sourceDir": "./src",
"testSourceDir": "./test",
"protoSourceDir": "./proto",
"generatedSourceDir": "./lib/generated",
"compileDescriptorArgs": []
},
...
}
Install
On install, this downloads the latest version of the JavaScript codegen CLI
Scripts
Build
- Builds Protobuf descriptor file
- Runs Akka Serverless JS codegen
Package
- Builds Docker image of the service
Deploy
- Deploys Docker image to specified repository
- Invokes Akka Serverless deploy via
akkasls
CLI