gstreamer/docker/android/Dockerfile
Jordan Petridis a99cdc8909 docker: allow to specify the branch to pull for various repos
Declare an docker build-arg [1] and use it
whenever cloning one of our repositories. If the buildarg
is not specified, the variable defaults back to 'master'
and thus the current behavior doesn't change.

From the .gitlab-ci.yml file, when building pass
the GST_UPSTREAM_BRANCH that's defined from the ci_template
as the buildarg so we will be building the corresponding branches
for the docker images.

Close #33

[1] https://docs.docker.com/engine/reference/builder/#arg
2020-03-08 18:53:23 +00:00

11 lines
243 B
Docker

FROM registry.fedoraproject.org/fedora:31
ENV ANDROID_HOME=/android/sdk
ENV ANDROID_NDK_HOME=/android/ndk
ARG DEFAULT_BRANCH="master"
COPY prepare.sh cleanup.sh /root/
RUN /usr/bin/sh /root/prepare.sh && \
/usr/bin/sh /root/cleanup.sh