Developing .NET Core 2.0 Web Applications on OpenShift
Today we’re going to create a .NET Core 2.0 Web Application using the JBoss Developer Studio and the aCute plugin (C# application development). We’ll deploy our application onto an OpenShift instance and continue to modify it while viewing the changes almost instantly. Although the initial setup will be quite involved, it will only need to be done once.
- Make local changes.
- Commit + push them to version control.
- Either re-trigger a build manually or ensure web-hooks are set up so that OpenShift detects the new changes.
In these cases, the image containing our build/runtime and project sources must be rebuilt and started on every single change. Not only does this take a while, but also in a development environment, who wants to be committing and pushing every tiny change they make just to see what it looks like? Luckily, there’s an easier way that better reflects this “development” workflow.
We’ll start by getting our prerequisites. We will download JBDS from https://developers.redhat.com/products/devstudio/download/ and the .NET Core SDK from https://www.microsoft.com/net/download/core.
Once those are installed, you’ll also need to install the ‘aCute’ plugin from the Eclipse Marketplace, https://marketplace.eclipse.org/content/acute-c-edition-eclipse-ide-experimental . It’s always possible to install things using software sites, but many will find it easier to drag and drop the ‘Install’ button from the marketplace into the Eclipse IDE workbench.
If we do end up using a software site to install the content, we’ll want to install the ‘ACute – C# edition in Eclipse IDE (Experimental)’. Once that’s complete, and after a restart, we’ll be ready to create our first project.
The Red Hat OpenShift Container Platform is available for download.