geerlingguy / docker-centos8-ansible

CentOS 8 Docker container for Ansible playbook and role testing.
https://hub.docker.com/r/geerlingguy/docker-centos8-ansible/
MIT License
60 stars 40 forks source link

Molecule Testing for Snap Installs #13

Open ProfessorManhattan opened 3 years ago

ProfessorManhattan commented 3 years ago

Hey, I'm getting an error when trying to test a role that includes installing something via snap. More specifically testing snap install --classic androidstudio. I did some digging and found out that squashfs on CentOS does not support lzo compression which is the compression that many snaps are now using since it's recommended by Canonical.

Is there any work around for testing lzo compressed snap installs?

geerlingguy commented 3 years ago

@ProfessorManhattan - I've encountered the same issue in some of my testing (see: https://github.com/geerlingguy/ansible-role-certbot/pull/146). It seems like this could be because the snap maintainers don't seem to care to make it work inside containers: https://bugs.launchpad.net/snapd/+bug/1712808