From 26e6bc2072c6645142c3b7526eb1835e79ac7d00 Mon Sep 17 00:00:00 2001 From: Michael Stucki Date: Sat, 28 Jun 2014 16:25:21 +0200 Subject: [PATCH] Move environment variables to /etc/env-android.sh --- Dockerfile | 4 ++-- android-env-vars.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 android-env-vars.sh diff --git a/Dockerfile b/Dockerfile index 68d1c27..ea12d4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,8 +31,8 @@ RUN mkdir /home/cmbuild/bin RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/cmbuild/bin/repo RUN chmod a+x /home/cmbuild/bin/repo -RUN echo "export PATH=${PATH}:/home/cmbuild/bin" >> /etc/bash.bashrc -RUN echo "export USE_CCACHE=1" >> /etc/bash.bashrc +ADD android-env-vars.sh /etc/android-env-vars.sh +RUN echo "source /etc/android-env-vars.sh" >> /etc/bash.bashrc WORKDIR /home/cmbuild/android VOLUME /home/cmbuild/android diff --git a/android-env-vars.sh b/android-env-vars.sh new file mode 100644 index 0000000..84d65d2 --- /dev/null +++ b/android-env-vars.sh @@ -0,0 +1,2 @@ +export PATH=/home/cmbuild/bin:$PATH +export USE_CCACHE=1