ever-co / ever-demand

Ever® Demand™ - Open Commerce Platform - https://everdemand.co
https://everdemand.co
GNU Affero General Public License v3.0
1.74k stars 464 forks source link

DevOps: fix CircleCI builds for mobile apps #1308

Closed evereq closed 4 years ago

evereq commented 4 years ago

We recently switched to Machine builds in Circle from Docker-based builds (so we got more RAM). However, we did not switch yet builds for Android apps correctly. They used Docker image circleci/android:api-29-node, so now we need to install all that Android SDK, Cordova, Build Tools and tons of other things manually on the machine inside CircleCI build.

See as example dockerfile: https://github.com/CircleCI-Public/circleci-dockerfiles/blob/master/android/images/api-29-node/Dockerfile

Note: of course in our case, it will be different because we use the Ubuntu machine, etc.

evereq commented 4 years ago

image

Fixed using few tricks: