github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/clients/android/devenv/Dockerfile (about)

     1  # Build environment in which to build the Camlistore Android app.
     2  #
     3  # This extends the Dockerfile from https://index.docker.io/u/wasabeef/android/
     4  
     5  FROM wasabeef/android
     6  MAINTAINER bradfitz <brad@danga.com>
     7  
     8  # Found these from: android list sdk -u -e
     9  RUN android list sdk -u -e | grep build-tools- | perl -npe 's/.+"(.+)"/$1/' > /tmp/build-tools-version
    10  RUN perl -e 'die "No Android build tools version found." unless -s "/tmp/build-tools-version"'
    11  RUN echo y | android update sdk -u -t $(cat /tmp/build-tools-version)
    12  RUN echo y | android update sdk -u -t android-17
    13  
    14  # Don't need mercurial yet, since we're just using the archive URL to fetch Go.
    15  # But it's possible we may want to switch to using hg, in which case:
    16  # RUN yum -y install mercurial
    17  
    18  # Update the GOVERS to depend on a new version of Go.
    19  #
    20  # The 70499e5fbe5b version is in the Go 1.3 dev cycle (2014-02-21),
    21  # after I fixed some net/http bugs (that are also worked around in
    22  # Camlistore, but...), and after some Go 1.3 GC precision fixes. It
    23  # enables precise stack scanning too, for better or worse (risk).
    24  ENV GOVERS 70499e5fbe5b
    25  
    26  RUN cd /usr/local && curl -O http://go.googlecode.com/archive/$GOVERS.zip
    27  RUN cd /usr/local && unzip -q $GOVERS.zip
    28  RUN cd /usr/local && mv go-$GOVERS go
    29  RUN chmod 0755 /usr/local/go/src/make.bash
    30  RUN echo $GOVERS > /usr/local/go/VERSION
    31  RUN GOROOT=/usr/local/go GOARCH=arm bash -c "cd /usr/local/go/src && ./make.bash"
    32  
    33  
    34  ENV ANDROID_HOME /usr/local/android-sdk-linux
    35  ENV ANT_HOME /usr/local/apache-ant-1.9.2
    36  ENV PATH $PATH:$ANDROID_HOME/tools
    37  ENV PATH $PATH:$ANDROID_HOME/platform-tools
    38  ENV PATH $PATH:$ANT_HOME/bin
    39  ENV IN_DOCKER 1