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!

Proget on Docker Container



  • Hi everybody. firts of all i am very beginner working with docker and proget.
    I created a proget in a docker and it is published on 6580/80 ports.

    This configuration is set because i have others container in the same linux host (like mongodb, postgrest,etc). The problems that i encountered when created a private package repository (using choco) it's when I publish a package correctly and have a string to call like (choco install package ---source http://myprivateurl/nuget/feeds. When i call this string from a local computer , the installation fails due to next message:
    [NuGet] It is not possible to connect to the remote server.
    The package was not found with the source(s) listed.

    After some days trying to fix the problem without result, my question is that is possible have a diferent docker containers in the same linux host each one on different port. Or maybe the configuration of porget its wrongt.

    Hopefully someway anybody can show me the light.

    Product: ProGet
    Version: 5.1.8



  • Of course you can have many containers running on a host.

    But just so you know... Docker is most definitely not for beginners, so if your goal is "getting a reliable ProGet setup working in a reasonable amount of time", you should most definitely use Windows.

    If you're aiming to learn how to use Linux/Docker, there are better ways than using the ProGet container.

    The problem with using Docker as a non-expert is that, when it breaks (which it inevitably will), if you don't know all the right commands to type in and underlying configuration of the containers, you're going to be spending hours/days scrambling to fix it.



  • Hello George, thanks for your quickly answer. Well, I tried to change the proget configuration ports on docker from 6580:80 to 80:80 and the problems have resolved.

    I Understand that although proget resolve correctly the url request http://proget.local:6580 and redirect the answer to 80 port when i tried to download a package with choco pack -source http://proget.local (previusly correctly uploaded on proget trought the portal) this query always bound to 80 ports and because of this it´s not possible to find the package and download it.

    I reinforced these arguments when later saw in the dockerfile details that mount the proget image te next string:
    (/bin/sh -c ([ -f /usr/share/Inedo/SharedConfig/ProGet.config ] || echo '<?xml version="1.0" encoding="utf-8"?><InedoAppConfig>ConnectionString>'"$PROGET_DATABASE"'</ConnectionString><WebServer Enabled="true" Urls="http://*:80/"/></InedoAppConfig>' > /usr/share/Inedo/SharedConfig/ProGet.config) && mono/usr/local/proget/db/bmdbupdate.exe Update /Conn="$PROGET_DATABASE" /Init=yes && exec mono /usr/local/proget/service/ProGet.Service.exe run --mode=both)

    I hopesfuly to correctly understanded that the issue was here. In any case now I have two current proget running. One on docker on 80/80 ports and other on windows.

    Thanks for your help.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation