Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEPRECATED] Comunity.docker #45

Open
erzica opened this issue Oct 28, 2024 · 7 comments
Open

[DEPRECATED] Comunity.docker #45

erzica opened this issue Oct 28, 2024 · 7 comments

Comments

@erzica
Copy link

erzica commented Oct 28, 2024

Hi friends.
I have tried to install the gateway on a raspberry pi 5, everything is correct until the ansible-playbook main.yml is executed, at which point it gives this error and I don't know how to solve it.

[DEPRECATED]: comunity.docker.docker_compose has been removed. This module uses docker-compose v1, wich is End of Life since July 2022. Please migrate to community.docker.docker_compose_v2. This feature was removed from comumunity.docker in version 4.0.0. Please update your playbooks

Can you help me if you are so kind?

thank you so much.

@g60ffg
Copy link

g60ffg commented Nov 2, 2024

Hi,

I’ve had this same issue today when trying to install the gateway. Unsure if this is something that can be solved with configuration or a different version of something?

Could anyone help confirm or if it needs changes elsewhere?

thanks!

@vk6fmll
Copy link

vk6fmll commented Nov 25, 2024

Hi all
same here... really want to try this out but cant install
cheers

@Davide3i
Copy link

Davide3i commented Jan 3, 2025

Same error here.
Updating handlers.yml with community.docker.docker_compose_v2 doesn't seem to solve the issue. Any hints?

@JasP19
Copy link

JasP19 commented Jan 5, 2025

The better solution would be to upgrade the project to use docker_compose_v2 from the community.docker collection.

That said, for now, I managed to get it working by pinning the community.docker collection at an earlier version in requirements.yaml:

---
collections:
  - ansible.posix
  - name: community.docker
    version: "==3.13.4"
  - community.general

@ruifilipefsilva
Copy link

Even with the branch docker-compose-v2 instruction I'm getting the same error regarding docker compose v1.
This is on a fresh raspberry-pi installation.

Ansible version is ansible [core 2.18.1]

Any help?

@d3vilh
Copy link
Owner

d3vilh commented Jan 13, 2025

Even with the branch docker-compose-v2 instruction I'm getting the same error regarding docker compose v1.

Hi @ruifilipefsilva, I hope to deal with it EOD. But you could try docker-compose-v2 branch.

there is updated README section about installation ansible from pip.

As of now, you have to run ./webinstall with sudo for installation of docker and docker compose and one more time without sudo when it fails to build Open-VPN Server :)

I'll try to fix it today and port everything to main branch, so it will work with docker-compose-v2 on all the RPI boards with the latest Raspbian installed.

Cheers.

@d3vilh
Copy link
Owner

d3vilh commented Jan 13, 2025

With the latest commit, it should works without the issue.
At least it works for me:

philipp@d3vpi:~/raspberry-gateway $ git switch docker-compose-v2
M	templates/samba_server-docker-compose.yml.j2
M	webinstall.log
Already on 'docker-compose-v2'
Your branch is up to date with 'origin/docker-compose-v2'.

philipp@d3vpi:~/raspberry-gateway $ ./webinstall
2025/01/13 21:13:11 Welcome! The web interface will guide you on installation process.
Installation logs: webinstall.log
2025/01/13 21:13:11 Starting web server on http://192.168.88.66:8088


RUNNING HANDLER [Restart Samba] ************************************************
changed: [raspberry_gateway]

PLAY RECAP *********************************************************************
raspberry_gateway          : ok=49   changed=16   unreachable=0    failed=0    skipped=84   rescued=0    ignored=0

On RPI4 with following versions:

philipp@d3vpi:~/raspberry-gateway $ uname -a
Linux d3vpi 6.6.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux
philipp@d3vpi:~/raspberry-gateway $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:  Debian GNU/Linux 12 (bookworm)
Release:  12
Codename: bookworm
philipp@d3vpi:~/raspberry-gateway $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
philipp@d3vpi:~/raspberry-gateway $ cat /etc/rpi-issue
Raspberry Pi reference 2024-03-15
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, f19ee211ddafcae300827f953d143de92a5c6624, stage2

philipp@d3vpi:~ $ ansible-doc -t module -l | grep docker_compose_v2

community.docker.docker_compose_v2                                                                  Manage multi-container Docker applications with ...
community.docker.docker_compose_v2_exec                                                             Run command in a conta...
community.docker.docker_compose_v2_pull                                                             Pull...
community.docker.docker_compose_v2_run                                                              Run command in a new conta...
philipp@d3vpi:~ $
philipp@d3vpi:~ $ ansible-galaxy collection list | grep community.docker
community.docker                         4.3.0
community.docker                         4.1.0
philipp@d3vpi:~ $ ansible --version
ansible [core 2.18.1]
  config file = None
  configured module search path = ['/home/philipp/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.11/dist-packages/ansible
  ansible collection location = /home/philipp/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/philipp/.local/bin/ansible
  python version = 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] (/usr/bin/python3)
  jinja version = 3.1.5
  libyaml = True
philipp@d3vpi:~ $

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants