Comments (3)
@eliasbagley I've tried using alpine base image, but with no luck, here is why.
From the first RUN
command in the Dockerfile, it does enabling multiarch:
dpkg --add-architecture i386
apt-get update -y
apt-get install -y libncurses5:i386 libc6:i386 libstdc++6:i386 lib32gcc1 lib32ncurses5 lib32z1 zlib1g:i386
Which in fact is trying to solve the problem described here:
Some users using the Android SDK might encounter problems when trying to run build-tools or platform-tools on amd64 bit platform. As replacement for ia32-libs, users should be fine just installing the following libraries:
dpkg --add-architecture i386
apt-get update
apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
While unfortunately according to here, you'll find that alpine doesn't have ia32-libs
package so far.
As a result, the answer would be "sorry, we can't use alpine as the base image at the moment".
Thank you for your understanding.
from androidsdk.
Totally agree with you - SIZE matters! It's crucial for the speed of deployment.
To be honest, the reason why I use ubuntu instead of alpine as the base image, is because that I don't think alpine would meet all the complicated dependencies. Of course, that is only my presumption, I was too lazy to prove it.
Thanks for your advice, I'll try it out this weekend. Currently I could think of 3 possible outcome:
- It works out of the box - happy ending :)
- It doesn't meet the dependencies at first try, but would work after install the missing dependencies.
- It doesn't meet the dependencies, even with them being installed later. This is the worst case - not easy to figure out the missing transitive dependencies installation.
from androidsdk.
Forgot to ask one thing @eliasbagley - apart from trying alpine image, can't you also try to always use the pulled image locally, instead of downloading it every time?
- The image is not updated frequently;
- You could pull the update by hand (or by some job) when there is a update available;
- As long as current image version works fine for you, you don't have to update to the latest version.
from androidsdk.
Related Issues (20)
- Q: Please help starting the emulator HOT 5
- Illegal redistribution of Android SDK HOT 1
- Use an error in the Jenkins Pipeline HOT 2
- android:text="@{`$` Packaging appears to become. ???? Abnormal display HOT 1
- Android app crashing before even showing the splash screen HOT 4
- The Android X framework has compatibility issues HOT 3
- Why do we need to remove X11 in watchdog.sh HOT 2
- Support for Gradle 7.x and AGP 7.x HOT 5
- Build images with GitHub Actions HOT 2
- [Improvement] Update Gradle and Kotlin version HOT 1
- 'WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested HOT 8
- [BUG] - Could not load the Qt platform plugin "xcb" in "/opt/android-sdk/emulator/lib64/qt/plugins" even though it was found. HOT 10
- [BUG] HOT 3
- [Enhancement] Clean up image space HOT 1
- pthread_create failed (EPERM) when running sdkmanager HOT 4
- Failed manual build image HOT 5
- [Requirement] Upgrade AGP 8.x and JDK 17 HOT 2
- Think over support JDK 20+ on your docker image ? HOT 2
- ARM64 image variant HOT 6
- [BUG] Could not load the Qt platform plugin "xcb" in "/opt/android-sdk/emulator/lib64/qt/plugins" HOT 2
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 androidsdk.