Giter VIP home page Giter VIP logo

docker-aci-integration-example's Introduction

title
README docker compose ACI

Docker ACI integration (Beta)を使って、.NET Core App + redis の docker compose をAzure Container Instance にup する。

ドキュメントは、この辺。Deploying Docker containers on Azure(Beta)

2.3.2.0 以降が必要。Deploying Docker containers on Azure/Prerequisites

6/25、2.3.2.0で、Beta release of the Docker ACI integration 使えるようになった。

概要

最初に、azure にdocker cliで、azure login して、ACI コンテキストを作る。(予めリソースグループは作っておく)

docker login azure
docker context create aci mycontext

compose upする。自己署名証明書を上げずに、httpだけにしている。

docker-compose -f ./docker-compose.yml -f ./docker-compose.override.yml build
docker-compose -f ./docker-compose.yml -f ./docker-compose.override.yml push
docker -c mycontext compose  -f ./docker-compose.yml -f ./docker-compose.override.yml up

動いているのを見る

docker -c mycontext ps

消す

docker -c mycontext compose down

クロスプラットフォーム(Mac, Windows, WSL2, Linux)で動くはず。

サンプルコードの注釈

docker-compose.yml

TODO

  • image の更新方法。down して、up すれば更新されるけど。コンテナグループの特定のコンテナだけ更新したい。
  • このプログラムだと、redisがないと動かないので、compose の中でしか動かない。当たり前だけど面倒。
  • Log Analytics、Application Insightsにログを送るサンプルを作る
  • 自己署名証明書も上げた方がいいかのなと思うが、クロスプラットフォームで動くようにするのはどうするかを検討。
  • .gitattributes で、lf にしたときの微妙な動きをどこかに書く
  • ACI 固有の設定をどう書くのかを確認。たとえば、DNS名とか。

docker-aci-integration-example's People

Contributors

takekazuomi avatar

Watchers

 avatar James Cloos 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.