Giter Club home page Giter Club logo

netcandystore's Introduction

NetCandyStore

.NET Framework online Candy Store using Windows Containers in OpenShift

Prerequisites

  1. Access to an OpenShift cluster that supports Windows Containers
  2. The oc command-line interface for OpenShift

Table of Contents/Steps

  1. Create a cluster that supports Windows Containers
  2. Create a project
  3. Create and populate the MS SQL Server database
  4. Prepare Windows Container node
  5. Create the service 'netcandystore'
  6. Create route for service 'netcandystore'
  7. Create the service 'getcategories'
  8. COMING SOON: Replace the service 'netcandystore" using image netcandystore:v2

Step 1: Create a cluster the supports Windows Containers

(some RHPDS magic here)

Step 2: Create a project

At the command line, run the command
oc new-project netcandystore

Alternatively, you can use the OpenShift console to create the new project "netcandystore".

Step 3: Create and populate the MS SQL Server database

For the purposes of this demo, this instance of MS SQL Server will run in our OpenShift cluster.

Linux and macOS

Run the script create_database.sh

PowerShell

Run the script create_database.ps1

Step 4: Prepare Windows Container node

This step will pull the image into the node running Windows Containers.

Linux and macOS

Run the command:
./prepare-preload.sh

PowerShell

Run the command:
./preload.ps1

Step 5: Create the service 'netcandystore'

The service runs in a Windows Container and uses the image quay.io/donschenck/netcandystore:2021mar8.1

Run the command:
oc create -f preload.yaml

Run the following command and wait until the preload job is finished:
oc get jobs -n openshift-windows-machine-config-operator -w

When the job is completed, press Ctrl-C to exit the wait command.

Run the command:
oc apply -f netcandystore.yaml

Step 6: Create route for service 'netcandystore'

PowerShell

Run the command:
oc apply -f netcandystore-route.yaml

Step 7: Create the service 'getcategories'

PowerShell

Run the command:
oc apply -f getcategories.yaml

netcandystore's People

Contributors

donschenck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.