Code Monkey home page Code Monkey logo

Comments (3)

thyrlian avatar thyrlian commented on May 17, 2024 1

@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.

thyrlian avatar thyrlian commented on May 17, 2024

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:

  1. It works out of the box - happy ending :)
  2. It doesn't meet the dependencies at first try, but would work after install the missing dependencies.
  3. 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.

thyrlian avatar thyrlian commented on May 17, 2024

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)

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.