ansibleguy76 / ansibleforms-docker

A docker-compose project to start ansibleforms in docker
8 stars 4 forks source link

Ansible Forms with Podman-Compose #4

Closed wagneradrian92 closed 10 months ago

wagneradrian92 commented 11 months ago

Hello, Is it possible to use ansible forms with podman-compose?

regards

ansibleguy76 commented 11 months ago

yes. i don't have an example though, but the concept is the same. in the end, it is simply containers running.

wagneradrian92 commented 11 months ago

thanks for the quick reply. i got both containers up and running. but dns resolution does not seem to work. pinging is possible error: [ansibleforms] Query error : Error: getaddrinfo ENOTFOUND mysqldb error: Failed to abandon jobs : Error: getaddrinfo ENOTFOUND mysqldb error: [ansibleforms] Query error : Error: getaddrinfo ENOTFOUND mysqldb

in your installation guide you mentioned the following:

the below is to ensure dns works properly inside the dockerimages

sudo mkdir -p /etc/docker echo "{\"dns-opts\":[\"ndots:15\"]}" | sudo tee /etc/docker/daemon.json

do you by any chance know where to make these settings in podman? :D

ansibleguy76 commented 11 months ago

i had this too in docker compose. it are the internal networks overlapping with the host network.

in docker compose a down and up foxes it because it cycles over different subnets

Op di 17 okt 2023 om 16:54 schreef wagneradrian92 @.***>

thanks for the quick reply. i got both containers up and running. but dns resolution does not seem to work. pinging is possible error: [ansibleforms] Query error : Error: getaddrinfo ENOTFOUND mysqldb error: Failed to abandon jobs : Error: getaddrinfo ENOTFOUND mysqldb error: [ansibleforms] Query error : Error: getaddrinfo ENOTFOUND mysqldb

in your installation guide you mentioned the following: the below is to ensure dns works properly inside the dockerimages

sudo mkdir -p /etc/docker echo "{"dns-opts":["ndots:15"]}" | sudo tee /etc/docker/daemon.json

do you by any chance know where to make these settings in podman? :D

— Reply to this email directly, view it on GitHub https://github.com/ansibleguy76/ansibleforms-docker/issues/4#issuecomment-1766587309, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVM6SKW5HEVOMDGHJSYY36LX72L2BAVCNFSM6AAAAAA6D5MXPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRWGU4DOMZQHE . You are receiving this because you commented.Message ID: @.***>

ansibleguy76 commented 11 months ago

did a down and up fix it?

wagneradrian92 commented 11 months ago

sorry for the late response. unfortunately podman-compose does not support a down and up of the networks. https://github.com/containers/podman-compose/issues/490

ansibleguy76 commented 11 months ago

its not really the networks docker-compose generates internal networks and after each down/up others. 172.16.00, 172.17.00. at times, if your host just happens to be ising those networks too, there is a conflict. generally a down/up fixes that. but i am sure it can be configured somewhere too

Op do 26 okt 2023 om 09:58 schreef wagneradrian92 @.***>

sorry for the late response. unfortunately podman-compose does not support a down and up of the networks. containers/podman-compose#490 https://github.com/containers/podman-compose/issues/490

— Reply to this email directly, view it on GitHub https://github.com/ansibleguy76/ansibleforms-docker/issues/4#issuecomment-1780604916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVM6SKWQACVLZCBDVXV5HPLYBIJ3NAVCNFSM6AAAAAA6D5MXPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQGYYDIOJRGY . You are receiving this because you commented.Message ID: @.***>

-- Met vriendelijke groeten, Mirko Van Colen 0496122285

wagneradrian92 commented 11 months ago

i finally got it up and running! with all my testing and reconfiguring in the podman config i finalley learned that my podman version is no longer using CNI but netavark. so if anybody else has issues with podman just reset and update everything then it should work :)

$ podman system reset --force

$ sudo dnf install 'dnf-command(copr)'

$ sudo dnf upgrade podman

$ sudo dnf install netavark aardvark-dns