0
0

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 3 years have passed since last update.

DockerをAppServiceにデプロイする

0
Posted at

https://qiita.com/kaikusakari/items/711c7d46a00c3ccff252
前回からの続きです。Dockerを動かして動作確認したのでAppServiceで動かします

今回は空のコンテナレジストリがある状態から始めます

$ az login
$ az acr login --name myregistry

# エイリアスの作成(NameSpaceは省略します)
$ docker tag springio/gs-spring-boot-docker myregistry.azurecr.io/testkusakari

# プッシュ
$ docker push myregistry.azurecr.io/testkusakari

プッシュしました
image.png

デプロイしました
image.png

実際にURLにアクセス
https://testsamplekusakari.azurewebsites.net/
image.png

想定通りDockerがデプロイできAppService経由で公開できました。AzureのCR→AppServiceまでの認証の仕組みなど包括的に順を追って学ぶことができました。今回は固定の文字列でしたがより実践的なDBなどを順番に体験していきたい。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?