Giter VIP home page Giter VIP logo

octopetshop's Introduction

OctoPetShop

Octopus Pet Shop Example Web app written in .NET Core. This solution consists of:

  • Octopus Pet Shop Web front end
  • Product Service
  • Shopping Cart Service
  • Database project using Dbup

Included in this example are docker files to make each component as a container. The docker-compose file at the root of the project also includes a SQL Server image so the entire application can be run in containers.

Kubernetes .yaml files have been included in this project which will pull the images from the octopussamples Docker Hub repo.

Important Notes

  • Password for SQL Server will need to be changed, current password will fail due to password requirements. You will also need to update the password in octopetshop-sql-deployment.yaml, octopetshop-database-job.yaml, octopetshop-productservice-deployment.yaml, and octopetshop-shoppingcartservice-deployment.yaml.

  • SQL Server image has not been configured with a persistent volume claim, you will lose your data if you re-create your Kubernetes cluster.

  • When using Octopus Deploy to deploy the .yaml files to a Kubernetes cluster, be sure that the octopetshop-database-job.yaml is run AFTER both octopetshop-sqlserver-cluster-ip-service.yaml and octopetshop-sql-deployment.yaml.

  • When debugging in Visual Studio 2022 without Docker Compose;

    • Install SQL Server 2019 upwards.
    • Create a database named ops
    • Add the connection string for the database to the OctopusSamples.OctoPetShop.Database Project;
      • Right click on the Database Project
      • Click Properties
      • Select the Debug > General tab from the menu on the left
      • Click the Open debug launch profiles UI link.
      • Enter a connection string in the following format, remembering to escape the = characters;
dbUpConnectionString=Data Source/=.\SQLEXPRESS;Integrated Security/=True;Connect Timeout/=30;Encrypt/=False;TrustServerCertificate/=False;ApplicationIntent/=ReadWrite;MultiSubnetFailover/=False;Database/=ops

octopetshop's People

Contributors

twerthi avatar pjgpetecodes avatar robpearson avatar ryanrousseau avatar harrisonmeister avatar devopsderek avatar danefalvo avatar octocrock avatar pstephenson02 avatar dependabot[bot] 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.