2014-02-08 21:58:20 +00:00
|
|
|
# Build environment in which to build the Camlistore Android app.
|
2014-02-09 01:14:02 +00:00
|
|
|
#
|
2014-02-09 01:15:09 +00:00
|
|
|
# This extends the Dockerfile from https://index.docker.io/u/wasabeef/android/
|
2014-02-08 21:58:20 +00:00
|
|
|
|
|
|
|
FROM wasabeef/android
|
|
|
|
MAINTAINER bradfitz <brad@danga.com>
|
|
|
|
|
2014-02-09 01:14:02 +00:00
|
|
|
# Don't need mercurial yet, since we're just using the archive URL to fetch Go.
|
2014-02-09 01:07:56 +00:00
|
|
|
# But it's possible we may want to switch to using hg, in which case:
|
|
|
|
# RUN yum -y install mercurial
|
|
|
|
|
2014-02-09 01:14:02 +00:00
|
|
|
# Update the GOVERS to depend on a new version of Go.
|
|
|
|
#
|
|
|
|
# The ec5195954667 version is in the Go 1.3 dev cycle, after I fixed some net/http
|
|
|
|
# bugs (that are also worked around in Camlistore, but...)
|
2014-02-09 01:07:56 +00:00
|
|
|
ENV GOVERS ec5195954667
|
2014-02-09 01:14:02 +00:00
|
|
|
|
2014-02-09 01:07:56 +00:00
|
|
|
RUN cd /usr/local && curl -O http://go.googlecode.com/archive/$GOVERS.zip
|
|
|
|
RUN cd /usr/local && unzip -q $GOVERS.zip
|
|
|
|
RUN cd /usr/local && mv go-$GOVERS go
|
|
|
|
RUN chmod 0755 /usr/local/go/src/make.bash
|
|
|
|
RUN echo $GOVERS > /usr/local/go/VERSION
|
|
|
|
RUN GOROOT=/usr/local/go GOARCH=arm bash -c "cd /usr/local/go/src && ./make.bash"
|
|
|
|
|
2014-02-08 21:58:20 +00:00
|
|
|
# Found these from: android list sdk -u -e
|
|
|
|
RUN echo y | android update sdk -u -t android-17
|
|
|
|
RUN echo y | android update sdk -u -t build-tools-19.0.1
|
|
|
|
|
|
|
|
ENV ANDROID_HOME /usr/local/android-sdk-linux
|
|
|
|
ENV ANT_HOME /usr/local/apache-ant-1.9.2
|
|
|
|
ENV PATH $PATH:$ANDROID_HOME/tools
|
|
|
|
ENV PATH $PATH:$ANDROID_HOME/platform-tools
|
|
|
|
ENV PATH $PATH:$ANT_HOME/bin
|
2014-02-09 01:07:56 +00:00
|
|
|
ENV IN_DOCKER 1
|