Giter Club home page Giter Club logo

p4a-build-spaces's Introduction

p4a build spaces

p4a-build-spaces allows you to launch an interactive shell with a reproducible build and test environment with python-for-android.

Still in development / unstable.

Installation

  1. Install docker, e.g. docker.io package on Ubuntu, or docker on Fedora Linux

  2. Install p4a build spaces:

    pip install -U https://github.com/JonasT/p4a-build-spaces/archive/master.zip

    If you have both pip2/pip3, use pip3! (Python 2 won't run p4aspaces properly)

Launch

Before you launch, make sure docker is running! (sudo service docker start)

  1. List environments: p4aspaces list-envs
  2. Launch shell with your choice: p4aspaces shell p4a-py3-api28ndk21 The first launch may take a longer amount of time!

Important: All file changes are temporary and will be lost once the environment terminates, unless you added a --workspace. (p4a build spaces always launches a new container, and attempts to delete it after your shell terminates to give you a clean environment next time)

Launch without install

You can run directly out of the p4a-build-spaces extracted tarball / development folder without installing system-wide. Just use:

  1. chmod +x ./p4aspaces,
  2. ./p4aspaces ... (instead of p4sapaces).

Cleanup

Please note the docker images will be left around, one per environment you used. Also, the containers will be terminated, but also left around. This will use up disk space.

To remove the used disk space, use: sudo docker system prune

(warning: if you use docker for something else, stopped containers and unused volumes of that may be removed as well!!)

p4a-build-spaces's People

Watchers

 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.