Ionic build tool based on docker
Ionic build tool based on docker
Ionic projects have always been hard to build after a period of time. The main componets for building an Android project with ionic are:
Only certain combinations of the 3 can build a specific Ionic project. If working on multiple ionic projects in the same time and one of them requires a cordova update there is the risk that all other projects will not build anymore
This project was built to ease ionic development and build by providing an portable integrated environment using docker to handle all ops related tasks. It is dedicated to building Android projects with Ionic.
The docker image provided can be used to:
It is a combination of docker file configurations and shell script for automation.
The docker image contains:
Just run:
$> docker-compose up
There is a default configuratio file called docker-compose.yml which will automatically download the docker image from docker hub and run the ionic serve
command in the current directory.
It also exports the 8100
port, so just open up the browser and load:
http://localhost:8100
And you ionic app can be viewed there directly :)
Other debug ports can be exposed if needed.
There is a central docker image configuration file called build/Dockerfile
.
This configuration can be updated to suit more specific needs and add more build tools. Just update this file and run:
$> cd build
$> ./docker-build.sh
The specific version of the docker image is located as a variable in .env
to be easy to update. (.env files are loaded by autoenv shell extension)