Generator-kyma
Kyma application template (experimental)
Installation
First, install Yeoman and generator-kyma using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-kyma
Then generate your new project:
yo kyma
The generated project contain the following files:
-
k8s
folder - k8s resources-
app
folder - Application code -
api.yaml
- API Exposure -
servicebindings.yaml
- Service binding and usage crd -
deployment.yaml
- Main deployment -
Dockerfile
- Application docker image
-
-
Makefile
- Contain the following targets:-
build
- Build docker image -
push
- Push Docker image -
update-deployment
- After the docker image has pushed to the registry use this target to update the deployment image -
deploy
- Run build, push and update-deployment targets
-
-
Dockerfile
- Suitable docker file according to the project generation technologies (node/golang/python)