-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work as non-root user #123
Comments
Could you please provide a bit more details about gitpod and how it's configured for you? |
Gitpod is a cloud IDE which gives you a shell in a docker instance. You can specify the Dockerfile, e.g., I'm trying this one. The user it gives you is not the root user, but You can try it here if you like |
I think it's a question for the GitPod folks. If you can use a custom Dockerfile then you probably can try the following one: FROM cirrusci/flutter:stable
USER gitpod
RUN chmod -R a+w $FLUTTER_HOME 🤷 |
I have a similar issue. I am trying to use this image with dagger.io. Maybe I shouldn't use this image, but wanted to let it be known at least |
I have the same mistake when I launch pipeline not from root * What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportStagingRelease'.
> Failed to install the following SDK components:
build-tools;30.0.3 Android SDK Build-Tools 30.0.3
tools Android SDK Tools
emulator Android Emulator
platforms;android-34 Android SDK Platform 34
The SDK directory is not writable (/opt/android-sdk-linux) |
If I can suggest a different image, I created a repo for Flutter images that uses non-root use by default. It was also to solve other issues like preaching Android SDK, etc. After trying many existing images like this repository and others, I couldn't find one to fit my needs. @8thgencore, give it a try if you can. It would be nice if some of the things I did could be contributed to this repo, but I wanted to try a different approach, so I created a separate repo. |
I'm using the following approach:
|
I'm trying to use this in gitpod, where there is a non-root user, but it fails with
I just added
to fix it, but I'm not sure if there is a better solution.
The text was updated successfully, but these errors were encountered: