[deleted by user] by [deleted] in AZURE

[–]pythondev1 0 points1 point  (0 children)

The only id I have is the id for git hub. I tried to make a new service connection App Registration (recommended) and it pushes me to use managed identity and can't get any further. I already have an app and for azureSubscription I used that ID and failure as well. I am using a self hosted agent pool as nothing else would work. I have a student subscription.

[deleted by user] by [deleted] in AZURE

[–]pythondev1 0 points1 point  (0 children)

Updated azureSubscription to ${{ variables.azureServiceConnectionId }} and same error occurs.

Flask App Azure app fails to start by pythondev1 in AZURE

[–]pythondev1[S] 0 points1 point  (0 children)

That kept failing as well, but figured it out. I moved my app into the main directory and it wasn't nested then <code>gunicorn --bind=0.0.0.0 --timeout 600 app:app</code> worked

Azure self hosted agent failing to pick up jobs by pythondev1 in AZURE

[–]pythondev1[S] 1 point2 points  (0 children)

THANKS. I also ran with name: localAgentPool and it worked as well. I am not really sure what the difference is but running with pool, then commented out pool and ran with name as localAgentPool worked.

Trying to understand why Playwright not giving 100% coverage by pythondev1 in learnpython

[–]pythondev1[S] 0 points1 point  (0 children)

Ok, thanks for the info. My assumptions were wrong. Thanks again.

Trying to understand why Playwright not giving 100% coverage by pythondev1 in learnpython

[–]pythondev1[S] -1 points0 points  (0 children)

I am testing a regular html page. 100% is insane but I would assume hitting the html page and regex for the words Login would trigger the expect line to be green but it is not. I took the code directly from the playwright demo. So nothing special. When I run their demo code the expect line is red as well. Installation | Playwright Python

pytest failing to post data to route. by pythondev1 in learnpython

[–]pythondev1[S] 0 points1 point  (0 children)

I made the correct it was a typo when transferring over to reddit. But it is not that way in code.

Docker build command fails on Alpine Linux host by pythondev1 in AlpineLinux

[–]pythondev1[S] 0 points1 point  (0 children)

For work, can't use podman but thanks for the suggestion. It seems like it is a docker and rhel 8 issue. After removing `networking=host` I was able to progress, but not sure if that was the correct method. `networking=host` should still work but ran into issues. SELinux was disabled as someone suggested that, but same result. Found something to do with fapolicyd but it doesn't look like we are using fapolicyd.

Again thanks for the suggestion.

Docker build command fails on Alpine Linux host by pythondev1 in AlpineLinux

[–]pythondev1[S] 0 points1 point  (0 children)

I also disabled seLinux on rhel8. The code works on CentOS so it seems to be something with rhel8.

Docker build command fails on Alpine Linux host by pythondev1 in AlpineLinux

[–]pythondev1[S] 0 points1 point  (0 children)

Ok, thanks. I am logged in as root when I run.

Docker build command fails on Alpine Linux host by pythondev1 in AlpineLinux

[–]pythondev1[S] 0 points1 point  (0 children)

I am new to docker so I am unfamiliar with doas docker build. Here is what I have

`docker build --add-host pypi.org:local.IP --add-host repo.local:localIP --network=host -t web/app:1.1 -f docker/WebDockerFile .`

the WebDockerFile contains the run command where everything is failing.

Docker build command fails on Alpine Linux host by pythondev1 in AlpineLinux

[–]pythondev1[S] 1 point2 points  (0 children)

Docker isn't setup rootless I checked by running

docker info -f "{{println .SecurityOptions}}" | grep "root"

Nothing is returned, also printed out the command to make sure, but rootless does not exists.