BikeSharing360_MultiContainer

BikeSharing360 Multi Container Demo

  • 所有者: microsoft/BikeSharing360_MultiContainer
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

#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.

  • 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 opencode@microsoft.com with any additional questions or comments.

主要指标

概览
名称与所有者microsoft/BikeSharing360_MultiContainer
主编程语言CSS
编程语言C# (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2016-12-05 17:53:14
推送于2023-04-17 17:59:22
最后一次提交2022-11-28 19:12:21
发布数0
用户参与
星数33
关注者数12
派生数30
提交数8
已启用问题?
问题数2
打开的问题数1
拉请求数1
打开的拉请求数4
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?