locked
VSTS push docker-compose to Azure Container Registry and WebApp RRS feed

  • Question

  • User2132417308 posted

    I would like to configure continuous integration from VSTS to Azure Container Registry and then to WebApp.

    Here's my ***docker-compose.yml*** file:
    As you can see I'm using an Asp.Net core + mssql.
    version: '3'

    services:
    api:
    image: tbacr.azurecr.io/myservice/api
    container_name: api
    build:
    context: ./Api
    dockerfile: Dockerfile
    ports:
    - "8000:80"
    depends_on:
    - db
    db:
    image: "microsoft/mssql-server-linux"
    container_name: mssql
    environment:
    SA_PASSWORD: "testtest3030!"
    ACCEPT_EULA: "Y"
    MSSQL_PID: "Developer"
    ports:
    - "127.0.0.1:8001:1433"

    Here's my task from VSTS:


    And I think the major task is Build Services and PublishServices
    So, please take a look below:
    Build Services

    PublishServices

    And finally, in Azure Container Registry I have:

    So, the question is how can I deploy it to the WebApp. I have tried right-click to api: latest repository and deploy to WebApp but the endpoint does not respond

    Saturday, November 11, 2017 9:38 AM

All replies

  • User61956409 posted

    Hi Cieja,

    I have tried right-click to api: latest repository and deploy to WebApp but the endpoint does not respond

    You said the endpoint not respond, do you mean that the web app does not respond if you request it?

    With Regards,

    Fei Han

    Tuesday, November 14, 2017 3:10 AM
  • User2132417308 posted

    You said the endpoint not respond, do you mean that the web app does not respond if you request it?

    With Regards,

    Fei Han

    I mean that the web app does not respond. It seems like problem with web app/

    Tuesday, November 14, 2017 5:19 AM
  • User61956409 posted

    Hi Cieja,

    If you deploy to Azure app service web app, you can try to turn on diagnostics and check if any useful logs are written, which could help troubleshoot the issue.

    With Regards,

    Fei Han

    Thursday, November 16, 2017 6:50 AM