Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build in Docker. Update new version on Google Play.
- Loading branch information
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
env: | ||
docker build -t danga/garagebuild devenv | ||
|
||
dockerdebug: | ||
docker run -v /home/bradfitz/src/github.com/bradfitz/android-garage-opener:/src/android-garage-opener danga/garagebuild /src/android-garage-opener/build-in-docker.pl debug | ||
|
||
dockerrelease: | ||
docker run -t -i -v /home/bradfitz/src/github.com/bradfitz/android-garage-opener:/src/android-garage-opener -v $(HOME)/keys/android-garage:/keys danga/garagebuild /src/android-garage-opener/build-in-docker.pl release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use File::Path qw(make_path); | ||
|
||
die "This script is meant to be run within the danga/garagebuild Docker contain. Run 'make env' to build it.\n" | ||
unless $ENV{IN_DOCKER}; | ||
|
||
my $mode = shift || "debug"; | ||
|
||
my $ANDROID = "/src/android-garage-opener"; | ||
|
||
print "Running ant $mode\n"; | ||
chdir $ANDROID or die "can't cd to android dir"; | ||
exec "ant", | ||
"-Dsdk.dir=/usr/local/android-sdk-linux", | ||
"-Dkey.store=/keys/android-release-garagekey.keystore", | ||
"-Dkey.alias=garagekey", | ||
$mode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Build environment in which to build the garage door app. | ||
# | ||
# This extends the Dockerfile from https://index.docker.io/u/wasabeef/android/ | ||
|
||
FROM wasabeef/android | ||
MAINTAINER bradfitz <brad@danga.com> | ||
|
||
# Found these from: android list sdk -u -e | ||
RUN android list sdk -u -e | grep build-tools- | perl -npe 's/.+"(.+)"/$1/' > /tmp/build-tools-version | ||
RUN perl -e 'die "No Android build tools version found." unless -s "/tmp/build-tools-version"' | ||
RUN echo y | android update sdk -u -t $(cat /tmp/build-tools-version) | ||
RUN echo y | android update sdk -u -t android-17 | ||
|
||
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 | ||
ENV IN_DOCKER 1 |