This repository is an extension to Codewind that adds support for Appsody projects.
Clone or download this repository to your Codewind workspace's .extensions
folder, i.e.
<codewind-workspace>/.extensions/appsodyExtension
Restart Codewind to pick up the new extension.
With Codewind running, add the Appsody templates to Codewind by making a POST
request to the http://localhost:9090/api/v1/templates/repositories REST API endpoint with the following content:
{
"url": "https://raw.githubusercontent.com/kabanero-io/codewind-appsody-templates/master/devfiles/index.json",
"description": "Appsody templates"
}
You may make the request using a REST client utility such as Postman or by using the curl
command, e.g.:
$ curl "http://localhost:9090/api/v1/templates/repositories" \
-X POST \
-d '{ "url": "https://raw.githubusercontent.com/kabanero-io/codewind-appsody-templates/master/devfiles/index.json", "description": "Appsody templates" }' \
-H "Content-Type: application/json"
After installing the Appsody extension and templates, you can create an Appsody project the same way you create other projects simply by selecting one of the Appsody templates.
-
Open a terminal into the Codewind server container:
docker exec -it codewind-pfe bash
-
Run the following command, replacing projectName with the name of the project to build:
export APPSODY_MOUNT_PROJECT=$HOST_WORKSPACE_DIRECTORY/projectName
-
Go into the project directory:
cd /codewind-workspace/projectName
-
Run the command below. A docker image of the application will be built with the name projectName.
/codewind-workspace/.extensions/appsodyExtension/appsody build
- There are currently only two Appsody templates, one for the Node.js Express stack and one for Java MicroProfile stack
- Debugging of Appsody projects in Codewind is not supported at this time
- Enabling and disabling auto build is not supported for Appsody projects
- Appsody is not supported on Codewind on Eclipse Che