GithubHelp home page GithubHelp logo

microsoft / bikesharing360_multicontainer Goto Github PK

View Code? Open in Web Editor NEW
33.0 13.0 32.0 3.47 MB

BikeSharing360 Multi Container Demo

License: MIT License

C# 17.01% JavaScript 1.68% CSS 72.47% Dockerfile 0.55% HTML 8.30%

bikesharing360_multicontainer's Introduction

#BikeSharing360

During our Visual Studio 2017 Launch event this year, Scott Hanselman presented our Dockder Tooling experiences.

This year, we built the technology stack for a fictional company named BikeSharing360, which allows users to rent bikes from one location to another.

BikeSharing360 is a fictitious example of a smart bike sharing system with 10,000 bikes distributed in 650 stations located throughout New York City and Seattle. Their vision is to provide a modern and personalized experience to riders and to run their business with intelligence.

In this demo scenario, we built several apps for both the enterprise and the consumer (bike riders). You can find all other BikeSharing360 repos in the following locations:

*Mobile Apps *Backend Services *Websites *Single Container Apps *Multi Container Apps *Cognitive Services Kiosk App *Azure Bot App

Multi Container Apps

Demo from Connect() 2016, where Donovan Brown opened an existing, "more complex" application than https://github.com/SteveLasker/Bikesharing360-Single to demonstrate seetting up Continuous Delivery with Visual Studio 2017 RC. The project was then deployed to Azure Container Services, through the Azure Container Registry.

Building the project in a container

To validate the VSTS Build Steps will sucessfuly build the project, in a container, you can validate this locally:

How this works:

  • when you call docker-compose -f docker-compose.ci.build.yml up, the image microsoft/aspnetcore-build:1.0-1.1 is attempted to be instanced.
  • The first time, microsoft/aspnetcore-build:1.0-1.1 isn't available compose up will build the image using .\build\Dockerfile
  • The root of the solution is volume mapped in
  • dotnet restore, dotnet publish -c release are executed

In the same folder as this readme.md file, call:

docker-compose -f docker-compose.ci.build.yml up

directly on your dev machine

Once built, cd .\bin\Release\publishoutput\ From the published directory, dotnet marketing.dll This will run the site at http://localhost:5000

run in a container

Once built, docker-compose up -d Find the dynamically assigned port: docker ps

 IMAGE                   PORTS
 bikesharing/marketing   0.0.0.0:32786->8080/tcp

http://localhost:32767

How to sign up for Microsoft Azure

You need an Azure account to work with this demo code. You can:

  • Open an Azure account for free Azure subscription. You get credits that can be used to try out paid Azure services. Even after the credits are used up, you can keep the account and use free Azure services and features, such as the Web Apps feature in Azure App Service.
  • Activate Visual Studio subscriber benefits. Your Visual Studio subscription gives you credits every month that you can use for paid Azure services.
  • Not a Visual Studio subscriber? Get a $25 monthly Azure credit by joining Visual Studio Dev Essentials.

Blogs posts

Here's links to blog posts related to this project:

Clean and Rebuild

If you see build issues when pulling updates from the repo, try cleaning and rebuilding the solution.

Copyright and license

  • Code and documentation copyright 2016 Microsoft Corp. Code released under the MIT license.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

bikesharing360_multicontainer's People

Contributors

erikaehrli avatar microsoft-github-policy-service[bot] avatar stevelas avatar stevelasker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bikesharing360_multicontainer's Issues

Docker.Compose.yml - reference to Rides.Api

The file Docker.Compose.yml refers to:

"image: bikesharingw-on.azurecr.io/ridesapi"

While I get that the "bikesharingw" is the Registry where this image is depoyed, the project for this application is not provided and hence the VSTS CI build pipeline fails missing such reference.

Questions:

  1. Can it be pointed to a non Docker site, as deployed by the "Backend" reporitory from Bike Shareing 360 suite of applications, assuming this is the referenced application?
  2. Is it used by the application, or can be just safely removed?
  3. The Marketing site do refers two external Api in Settings.json file, but how to configure them is not specificied on compile and run guideline text. Can be a valuable addition.

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.