Comments (9)
@jkfran any thoughts on this one?
from dotrun.
@sowasred2012 to pair with @bartaz to check the issue
from dotrun.
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.
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:
- be explicit about the shell (
sh -c "wget … | bash"
) - 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.
Ah, yes, I'm on zsh, so this gonna be it.
from dotrun.
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.
I'm reopening this, I just used script to install dotrun on new Mac and dotrun snap was not installed in multipass.
from dotrun.
@jkfran any thoughts?
from dotrun.
Hey @bartaz could you QA this one #83
from dotrun.
Related Issues (20)
- Add host mode option
- Cypress run fails
- Docker error about name conflict HOT 3
- Display available commands
- Error about port conflict (when docker container is already running in background) HOT 1
- specs.canonical.com gunicorn.error on M1 HOT 1
- Dockerpy is not pulling the latest image
- --node-module arg not available
- Updating the image is broken HOT 1
- Error: Entrypoint Permission denied
- No documentation on how to purge cache
- Can't run dotrun on Codespaces (and possibly other environments) HOT 1
- "error: externally-managed-environment" on macOS 14.3.1 HOT 4
- Error with the package django-openid-auth on M1 HOT 12
- The snap is huge HOT 2
- Add update checks
- Can't run multiple instances of the same project with dotrun v2 HOT 2
- Expose all the container ports HOT 1
- Error when passing specific params to `dotrun exec` command
- Ignored commands exit status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotrun.