Giter VIP home page Giter VIP logo

Comments (9)

cristinadresch avatar cristinadresch commented on September 21, 2024

@jkfran any thoughts on this one?

from dotrun.

cristinadresch avatar cristinadresch commented on September 21, 2024

@sowasred2012 to pair with @bartaz to check the issue

from dotrun.

jkfran avatar jkfran commented on September 21, 2024

Hey, sorry I couldn't check on this. I believe the issue might be on this line:

https://github.com/canonical-web-and-design/dotrun/blob/main/scripts/cloud-init-dotrun.yaml#L7

It's probably because of the pipe | bash. @Saviq do you know if using curl ... | bash on cloud-init scripts is not possible?

from dotrun.

Saviq avatar Saviq commented on September 21, 2024

Hey all, as I let @jkfran know, the problem is the | bash construct, which assumes a shell interpreting the command - which it doesn't, by default.

There's two solutions I can think of:

  1. be explicit about the shell (sh -c "wget … | bash")
  2. do it in two steps: wget …; bash install-dotrun-docker.sh

Also, /var/run/cloud-init*log should have helpful errors. We want to surface them on launch (canonical/multipass#1039), but didn't get to it yet.

from dotrun.

bartaz avatar bartaz commented on September 21, 2024

Ah, yes, I'm on zsh, so this gonna be it.

from dotrun.

Saviq avatar Saviq commented on September 21, 2024

Ah, yes, I'm on zsh, so this gonna be it.

No, it's not that. It's the fact that cloud-init executes the commands directly, there just isn't a shell anywhere in there:

https://cloudinit.readthedocs.io/en/latest/topics/modules.html#runcmd

Another (worse, IMO) option is to have it all as a string, so that cloud-init does actually use sh to interpret them:

runcmd: |
  wget … | bash
  mkdir …

from dotrun.

bartaz avatar bartaz commented on September 21, 2024

I'm reopening this, I just used script to install dotrun on new Mac and dotrun snap was not installed in multipass.

from dotrun.

cristinadresch avatar cristinadresch commented on September 21, 2024

@jkfran any thoughts?

from dotrun.

jkfran avatar jkfran commented on September 21, 2024

Hey @bartaz could you QA this one #83

from dotrun.

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.