Git Product home page Git Product logo

appinventor-env-docker's Introduction

Docker file for an App Inventor environment

This file creates a container with a full App Inventor development environment on Linux (Ubuntu 15.10 wily, 64bits) with all dependencies, and all software needed to run the server (including connecting to a device through USB).

Software installed

  • openjdk-8-jdk
  • ant
  • appengine 1.9.27
  • adb
  • phantomJS
  • git
  • other needed dependencies

Some assumptions

This file will create a container with all you need for development BUT the App Inventor source code. You are supposed to clone the sources onto your machine, which will then be shared as a volume mounted on the container. The current runBash.sh file is hardcoded to find the sources at /home/jos/development/AppInventor/app-inventor. You should modify that path accordingly to your own local setup.

Usage

  1. build the image with: (sudo) docker build -t [your_name]/appinventor-dev .

    This will create a docker container with all the software needed.

  2. Modify the script runBash.sh

    You should change [your_name]/appinventor for the name you have used when building the container. Also, you should modify the location of your app inventor sources as you have cloned them onto your local machine (my path is /home/jos/development/AppInventor/ so that should be modified in the script).

  3. run the script runBash.sh

    This will run a bash session.

Notes on the volume being shared

I am sharing /home/jos/AppInventor/app-inventor <-- this needs to be configurable //TODO (jos)

Connecting a device through USB

Modify the file 51-android.rules to include the ID of the device you want to connect.

Opening an additional bash session on the same container

Figure out the hash of the container by running (sudo) docker ps

Then run a second shell with (sudo) docker exec -it [container_id] bash

TODOs

  • Add aliases for git and terminal
  • Create a script to simply run the server (for non-developers)
  • Create a bash script to run the server on the container (runLocal.sh, copied on creation)

Attribution

This file was adapted from https://github.com/kelvinlawson/dockerfile-android-studio

Jos - October 2015

appinventor-env-docker's People

Contributors

josmas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.