Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    How to provide ProGet feed name in Azure DevOps Docker-Compose task?

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 9 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dustin.davis_2758
      last edited by

      Whenever I am pushing to ProGet from Azure DevOps using the "Docker Compose" task, I recieve an error that I did not provide the feed name.

      Here is my azure-build.yml.

      trigger:
      - master
      
      pool:
        name: [redacted]
      
      steps:
      - task: DockerCompose@0
        displayName: Build services
        inputs:
          action: Build services
          containerregistrytype: Container Registry
          dockerRegistryEndpoint: Proget Docker
          dockerComposeFile: docker-compose.yml
          projectName: [redacted]
          qualifyImageNames: false
          additionalImageTags: |
           $(Build.BuildId)
           latest
      
      - task: DockerCompose@0
        displayName: Push services
        inputs:
          containerregistrytype: Container Registry
          dockerRegistryEndpoint: Proget Docker
          action: Push services
          dockerComposeFile: docker-compose.yml
          projectName: [redacted]
          qualifyImageNames: true
          additionalImageTags: |
           $(Build.BuildId)
           latest
      

      The build completes. The push runs into an error.

      The error I receive:

      Docker repository names in ProGet must include the feed as a prefix. Example: MyFeed/library/ubuntu
      

      I need to use the Docker-Compose task for this specific service. To contrast, here's my regulars "Docker Build" task that lets me include the whole repository name and works every time:

      trigger:
      - master
      
      pool:
        name: [redacted]
      steps:
      - task: Docker@2
        displayName: buildAndPush
        inputs:
          containerRegistry: 'Proget Docker'
          repository: [org name (feed?)]/[image name]
          Dockerfile: Dockerfile
          buildContext: .
          tags: |
           $(Build.BuildId)
           latest
      

      How do I provide the Feed prefix with the docker-compose task?

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @dustin.davis_2758
        last edited by

        Hi @dustin-davis_2758 ,

        I'm not really sure - I'm not familiar enough with ADO Docker Compose to help :/

        The error is coming because the container repository (image) name is incorrect; it should be like proget.initech.com/feedName/initech/repositoryName

        Generally you put this in your docker-compose.yml file, like this:

        https://docs.inedo.com/docs/docker-compose-installation-guide#example-docker-compose-configuration-file

        So that would be the first place I would look. If you have the proper image name in there, tehn I guess, ADO might be doing something different?

        Let us know what you find!

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation