Image docker for building Yadoms for continuous integration
Build Yadoms for specific branch :
docker run -e MAKE_PACKAGE=true -e YADOMS_BUILD_BRANCH=${YADOMS_BRANCH} -e UPLOAD_FTP_CREDENTIALS=${FTP_USER}:${FTP_PASSWORD} yadoms/build_for_raspberrypi
- MAKE_PACKAGE : define to true to build also install and update packages (default to false)
- YADOMS_BUILD_BRANCH : specify a branch to build (default to develop)
- UPLOAD_FTP_CREDENTIALS : if defined, upload build results to www.yadoms.com FTP site (default not defined)
It will build the image from local cache (or from zero if no cache)
docker build --cache-from yadoms/build_for_raspberrypi:latest -t build_for_raspberrypi .
docker tag build_for_raspberrypi yadoms/build_for_raspberrypi
docker push yadoms/build_for_raspberrypi
Example : you want to update a Docker image (chaging the entrypoint.sh script) If building from a new environment all step will be computed. (changing entrypoint is the last step, and we could reuse an image from docker-hub to build faster)
docker pull yadoms/build_for_raspberrypi:latest
docker build --cache-from yadoms/build_for_raspberrypi:latest -t build_for_raspberrypi .
docker tag build_for_raspberrypi yadoms/build_for_raspberrypi
docker push yadoms/build_for_raspberrypi
Add the following args to the docker build command:
- http_proxy
- https_proxy
docker build --build-arg http_proxy=http://myproxyadress:8080 --build-arg https_proxy=http://myproxyadress:8080 -t build_for_raspberrypi .