Docker file to create a full App Inventor development environment

218 views
Skip to first unread message

Jos Flores

unread,
Oct 11, 2015, 12:17:45 PM10/11/15
to app-inventor-open-source-dev
Hey all,

I was tired of installing the App Inventor sources in computers so
came up with this docker file
https://github.com/josmas/appinventor-env-docker

It creates a container with all you need (ant, phantomJS, appengine,
Java, adb, and so forth).

The accompanying script will mount your local sources as a volume
shared with the container, so the container can be deleted and
recreated, and all the data stays in your computer (modify the
runBash.sh script to point to your sources, as explained in the
readme).

your phone should be detected through USB to push the Companion while
working [check the android rules file]).

If your docker host is not Linux, you might have to map ports 8888 and
5037 in your virtualbox VM (or vagrant file). Haven't tried this yet
on other hosts (only Linux) so feedback welcome.

Although the particular versions of openjdk8 and appengine run well
locally, I haven't tested if they are a good combination to push to
the appengine service. If anyone tries, let me know.

Another thing to try could be to create a script to simply launch the
server for non-developers (probably modifying the file to clone the
sources directly inside the container, and compile everything). Not
sure non-developers will want to go though learning docker though, so
not going to work on that for now (pull requests welcome!).

cheers,
José

Mark Sherman

unread,
Oct 12, 2015, 9:54:35 AM10/12/15
to App Inventor Open Source Development
Awesome!

Jos Flores

unread,
Oct 12, 2015, 12:34:42 PM10/12/15
to app-inventor-open-source-dev
Hi Hal,

It would be good to do some testing/using/breaking, especially on
different platforms, before moving it to the cml account.

Mark and Ben, if you play with it, do let me know. I'll try it on
Windows when I manage to get docker to run on 8.1; anticipating some
driver nonsense to plug the phone on the windows host, I'd say.

cheers,
José



On 12 October 2015 at 14:54, Mark Sherman <braze...@gmail.com> wrote:
> Awesome!
>
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to app-inventor-open-so...@googlegroups.com.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/app-inventor-open-source-dev.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages