Connecting VS Code to Remote Codewind
1. Locate the Codewind view in VS Code and click the cloud icon to launch the new connection wizard:
2. Add a connection name and press
3. Complete the three required fields: Gatekeeper URL, developer username, and developer password, and then save.
The IDE validates the connection and adds it to the Codewind panel:
The IDE and Codewind are connected.
Adding a deployment registry
Before projects can be deployed on Kubernetes, you need to specify a Docker Registry. Docker Hub is used in this example:
1. If it’s not already open, navigate to the connection details page with the link:
2. Locate and click
Open Container Registry Manager:
3. In the image registry screen, click
+ Add New:
4. Complete the Docker connection details. For example, if you are using Docker Hub, enter
docker.io and press
- Your Docker Hub user name.
- Your Docker Hub password.
- Your repo name, which is usually the same as your username.
The connection is tested to validate your credentials and stored in a Kubernetes secret within the Codewind service.
Create a new project
Go to the Codewind panel and click the Plus (+) icon on the new cloud deployment:
Select the template type and enter a project name. Your new project is built and after a few seconds begins running in the cloud.
Copying an existing local project to the cloud
Copy an existing local project, for example
myFirstNodeProject, over to the remote Codewind deployment:
1. Select the remote deployment and click the
Add existing project button:
2. Go to the folder containing the local project files and click
Add to Codewind:
Codewind prompts you to confirm the project type, in this case, identified as
Yes. Project files are copied over to the Codewind server, and the new
myFirstNodeProject appears in the Codewind panel:
4. Codewind begins building the code and the Docker image. Moments later the project image is uploaded to Docker Hub and used by your cloud deployment to provision a new pod:
CloudName1 cluster is now running and ready.
Congratulations! In this topic you:
- Deployed a new Codewind install into OpenShift.
- Configured your IDE to use this new deployment.
- Registered all the necessary security parameters.
- Created a new project that builds and runs in the cloud.
- Copied an existing local project to build and run in the cloud.
In the next step you learn how to remove an existing Codewind deployment: Remove a remote deployment of Codewind