Use the Eclipse Codewind sidecar plug-in for Eclipse Che to enable Theia to communicate with the Codewind server container.
The Codewind sidecar container includes the following responsibilities:
- The sidecar deploys the Codewind server container.
- The sidecar renders the deployment and service templates and applies them with the
kubectl apply
command. - When the workspace is shut down or deleted, the sidecar tears down Codewind and any deployed applications.
- The sidecar renders the deployment and service templates and applies them with the
- The sidecar sets up a reverse proxy for the Theia extension.
- Nginx is used for the proxy because it can handle both HTTP requests and socket.io.
- The Theia plug-in communicates with the reverse proxy, which then forwards requests to Codewind. This chain of communication avoids the addition of code in the Theia plug-in to discover and manage the connection to Codewind.
- The sidecar runs the
filewatcherd
daemon to track user code changes.- The
filewatcherd
daemon watches for changes in each user's project and communicates with Codewind, letting it know to start a build if required. - For more information on
filewatcherd
, see eclipse/codewind-filewatchers.
- The
- Install Docker 17.05 or later.
To build the sidecar image, run ./build.sh
.
For deployment instructions, see the README.md file at eclipse/codewind-che-plugin.
Submit issues and contributions: