2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【備忘録】自分向け爆速でAzure deployment.jsonを作成する

Posted at

爆速でAzure deployment.jsonを作成する

方法1:コンテナinspectで作成

deployment.jsonの対象となるコンテナを以下のコマンドで確認

docker inspect <コンテナID>

以下をcreateOptionsに記載。記載方法はjson形式ではない。一文にする。
image.png

以下を参考に
https://docs.microsoft.com/ja-jp/azure/iot-edge/how-to-use-create-options?view=iotedge-2020-11

方法2:docker-compose.ymlを活用

  • VScodeをAzureと連携させる
  • docker-compose.ymlを作成する
  • 「iotedge-compose」をpip installし、deployment.jsonを自動生成する

以下を参考に
https://devblogs.microsoft.com/iotdev/convert-your-docker-compose-project-to-azure-iot-edge-solution/

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?