Giter Club home page Giter Club logo

Comments (7)

jnsgruk avatar jnsgruk commented on July 29, 2024 2

@jnsgruk , the example above leverages whywaita/setup-lxd@v1, is there a difference from the canonical provided one?

Yeh, it just doesn't do the iptables stuff - the Ubuntu Github Actions runners that use 22.04 have a conflict where the rules that ship with docker prevent LXD containers from accessing the internet by default -- the Canonical action includes the change to iptables to ensure both work :)

from rockcraft.

gruyaume avatar gruyaume commented on July 29, 2024

I tested this with ubuntu 20.04 and I do not get this error. The error is somewhat related to the ubuntu 22.04 image / runner.

from rockcraft.

jnsgruk avatar jnsgruk commented on July 29, 2024

Pretty sure this is an iptables clash on 22.04

If you use the canonical/setup-lxd action before you install rockcraft you likely won't have the same issue.

Or you can lift the iptables rules from here: https://github.com/canonical/setup-lxd/blob/90d76101915da56a42a562ba766b1a77019242fd/action.yml#L39

from rockcraft.

gruyaume avatar gruyaume commented on July 29, 2024

@jnsgruk , the example above leverages whywaita/setup-lxd@v1, is there a difference from the canonical provided one?

from rockcraft.

gruyaume avatar gruyaume commented on July 29, 2024

Ahhh ok that's good to know. Cheers!

from rockcraft.

gruyaume avatar gruyaume commented on July 29, 2024

The fact that rockcraft depends on both docker and lxc being installed and that both those things don't play well together on Ubuntu is a bit of a pain. I'm not sure if this comment is helpful, but I'm sure I'm not the first feeling this pain.

from rockcraft.

cjdcordeiro avatar cjdcordeiro commented on July 29, 2024

this is a pain indeed. The thing is that Rockcraft doesn't actually depend on Docker, but most people do have it installed and is the de-facto tool for testing containers. In any case, here are some (hopefully) helpful nuggets:

Docker compatibility

I think the iptables clash might disappear if you use the Docker snap instead of the DEB.

LXD setup and automation

As Jon mentioned, the LXD action already takes care of this clash, as well as the new rockcraft-pack action: https://github.com/canonical/craft-actions/#rockcraft-pack

from rockcraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.