Skip to content

nateziemann/appsodyExtension

 
 

Repository files navigation

appsodyExtension

This repository is an extension to Codewind that adds support for Appsody projects.

  • appsody version: 0.2.4
  • appsody controller version: 0.2.1

Installing the Appsody Extension on Codewind

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.

Adding the Appsody Templates

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"

Creating an Appsody Project

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.

Building the Full Application Image

  1. Open a terminal into the Codewind server container:

    docker exec -it codewind-pfe bash

  2. Run the following command, replacing projectName with the name of the project to build:

    export APPSODY_MOUNT_PROJECT=$HOST_WORKSPACE_DIRECTORY/projectName

  3. Go into the project directory:

    cd /codewind-workspace/projectName

  4. Run the command below. A docker image of the application will be built with the name projectName.

    /codewind-workspace/.extensions/appsodyExtension/appsody build

Limitations for Tech Preview

  • 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

About

Appsody extension for Codewind

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%