Giter VIP home page Giter VIP logo

Comments (6)

kyrofa avatar kyrofa commented on June 25, 2024 1

Yeah, Snapcraft was required to use Multipass as the default backend for political reasons (a straight ask from Mark, hoping that it would make Multipass more popular). It works for simple cases, but anything more complex and it really gets in the way. The Snapcraft devs have maintained the LXD backend as a first-class citizen knowing that a significant number of people would use it instead. Just export SNAPCRAFT_BUILD_ENVIRONMENT=lxd in your ~/.bashrc and move on with your life.

from nextcloud-snap.

pachulo avatar pachulo commented on June 25, 2024

I guess you should have some swap partition/file if you are gonna do this with 8GB or RAM.

from nextcloud-snap.

kyrofa avatar kyrofa commented on June 25, 2024

@pachulo is right, you need a sort of ridiculous amount of RAM to build MySQL. I'm not actually sure how much the GitHub runners give us, to be honest, but we haven't had an issue there. Definitely had problems in this area in the past, though.

from nextcloud-snap.

kaklik avatar kaklik commented on June 25, 2024

Ok, but I have a machine with physically 32GB of RAM (not fully used during compilation) and the issue persists. The problem is that snapcraft always creates the VM with only 2GB of RAM and I have not found a solution how to avoid that (by using configuration from this repository).

from nextcloud-snap.

kyrofa avatar kyrofa commented on June 25, 2024

That sounds like a snapcraft bug. I personally use the lxd backend instead of multipass, which doesn't have those kinds of limitations. I'm not really sure what knobs snapcraft exposes these days to make that VM usable.

from nextcloud-snap.

kaklik avatar kaklik commented on June 25, 2024

That sounds like a snapcraft bug. I personally use the lxd backend instead of multipass, which doesn't have those kinds of limitations. I'm not really sure what knobs snapcraft exposes these days to make that VM usable.

Perfect! Thanks for the suggestion. The use of snapcraft --use-lxd solves the issue. Unfortunately the multipass is used by default for snapcraft without parameters.

from nextcloud-snap.

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.