Don't fetch git histories in docker

Change-Id: I02e5db18d49d1978960ee3d66cb48d681e5e858e
This commit is contained in:
KongQun Yang 2016-03-01 15:11:04 -08:00
parent 53e6d2d149
commit 583f1f3352
1 changed files with 4 additions and 8 deletions

View File

@ -2,14 +2,13 @@ FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
# update, upgrade and install basic packages # update, and install basic packages
RUN apt-get update && apt-get upgrade -y && apt-get clean RUN apt-get update
RUN apt-get install -y \ RUN apt-get install -y \
build-essential \ build-essential \
wget \ wget \
git \ git \
python \ python
subversion
# install depot_tools http://www.chromium.org/developers/how-tos/install-depot-tools # install depot_tools http://www.chromium.org/developers/how-tos/install-depot-tools
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
@ -19,9 +18,6 @@ ENV PATH /depot_tools:$PATH
RUN mkdir edash_packager RUN mkdir edash_packager
WORKDIR edash_packager WORKDIR edash_packager
RUN gclient config https://www.github.com/google/edash-packager.git --name=src RUN gclient config https://www.github.com/google/edash-packager.git --name=src
RUN gclient sync RUN gclient sync --no-history
RUN cd src && ninja -C out/Release RUN cd src && ninja -C out/Release
ENV PATH /edash_packager/src/out/Release:$PATH ENV PATH /edash_packager/src/out/Release:$PATH
# your media for testing
RUN mkdir /medias