Hello,
I am attempting to install pgadmin4 into a windows container using Docker, on a Windows Server 2019 system. The Dockerfile uses an image pulled from ‘mcr.microsoft.com/windows/servercore:1809’.
I am restricted to cmd/PowerShell and am having issues at the setup.py step in the deployment guide.
If I try to use the Dockerfile RUN functionality to run the setup.py script (RUN C:\'program files'\'pgadmin 4'\v6\python\python.exe C:\'program files'\'pgadmin 4'\v6\web\setup.py), it asks for the initial email, and then errors out. There is not an easy way (that I have found), to pipe through an argument mid script, to answer the email/password prompt.
I then tried to stop short of that run step and finish this step manually via an exec <container> PowerShell and commit the changes setup.py back to the image. However, when I manually run the setup.py in this nested PowerShell, the prompt appears, and then refuses to accept input. I can put whatever text I want in, hit enter, and it just goes to the next line, with no further messages; no errors, not anything.
Do you have any suggestions? Is there an argument setting I am missing? Could I pre-generate the files somewhere and copy them over? Or is this simply unsupported?
Thank you,
Alexander Biezenski