This repo contains the Dockerfile and some usage scripts for the open source project:
docker pull ashiqursuperfly/appinventor
- Docker and docker-compose needs to be installed in the system
- Clone this repo
git clone git@github.com:ashiqursuperfly/appinventor-docker-image.git
- Run the
build_aia_image.sh
bash build_aia_image.sh
The easiest way to run the image is to create a basic docker-compose file:
version: '3.8'
services:
aia:
restart: always
build:
context: .
ports:
- "9876:9876"
- "8888:8888"
- "9990:9990"
And to run it:
sudo docker-compose up --build
sudo docker exec ${container_id} bash -c "cd buildserver && ant RunLocalBuildServer"
sudo docker exec ${container_id} bash -c "/opt/appengine/appengine-java-sdk-1.9.68/bin/dev_appserver.sh --port=8888 --address=0.0.0.0 appengine/build/war/"
app_name=$1
zip_name=$2
container_id=$3
bash zipper.sh ${app_name} ${zip_name}
sudo docker cp ./$2 ${container_id}:/home/Text2App/appinventor/buildserver/
sudo docker exec ${container_id} bash -c "cd /home/Text2App/appinventor/buildserver/ && ant RunMain -Dzip.file=./${zip_name} -Duser.name=t2a -Doutput.dir=./"
sudo docker cp ${container_id}:/home/Text2App/appinventor/buildserver/${app_name}.apk ./${app_name}.apk