Hello,
Following the example at https://circleci.com/docs/2.0/language-android/
I added a .circleci/config.yml to my git repo and everything seems to be fine. Circleci builds perform as expected for my android app
However Id like to add some static data (eg precompiled c++ libraries such as boost, which should change orthogonally to the android version in the current docker: image ( ie circleci/android:api-27-alpha).
I could presumably create a new image based on circleci/android:api-27-alpha, add the static data (libraries) to it, push to docker hub, and use this as the docker image in my .circle/config.yml
However, this doesnt seem as elegant as having 2 images - one with the android sdk, and one with the static data, and each is independent of the other.
If I were just using docker (compose) I would create a docker-compose.yml with the contents below.
The ādataā image and ādroidā image can change independently, and yet the droid image can access the data in the other through shared volumes,
Is there any nice way to modify the example at https://circleci.com/docs/2.0/language-android/ so that it does something like this? And if so does it require a paid circleci account?
Many Thanks in Advance
version: '3'
services:
droid:
image: circleci/android:api-27-alpha
container_name: ctr_droid
command: tail -F anything # dummy command keep container busy, so it wont exit immediately
volumes:
- data-vol:/some_dir # make volume named "data-vol" accessible to this ctrs /tmp/somedir .. since it doesnt exist it will be created
data:
image: bashell/alpine-bash
container_name: ctr_data
command: tail -F anything # .. see above
volumes:
- data-vol:/media # link this ctrs /media dir accessible via a volume named "data-vol" ... it does exist so the contents will be "copied" to the volume and readable by other ctrs
volumes:
data-vol:
docker-compose.yml