diff options
author | 2016-11-30 20:33:52 +0100 | |
---|---|---|
committer | 2016-11-30 20:37:12 +0100 | |
commit | 6643e51c254d2dfed65f03568d1ce11e000f01c3 (patch) | |
tree | 21e49ccd23ea04e241cb5b7cd52d80164e2a3d2d /README.md | |
parent | 46067f331f1acb9512795a04b6f2f095b5470ecd (diff) |
Initial content
Change-Id: I330ad2e8b08a4743e752b8fe9d1ccf9fa1215f8a
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 47 |
1 files changed, 47 insertions, 0 deletions
@@ -1 +1,48 @@ # agl-docker-worker + +## Purpose + +This repository contains some scripts to generate a Docker image suitable for AGL workers. + +The AGL worker image is a Docker image based on Debian 8 and contains the necessary tools +either to build platform images based on Yocto, or run the AGL SDK to build AGL Applications +outside of Yocto process. + +## Requirements + +Have a recent docker daemon (>=1.10) installed. All the setup is done inside the image so no other tool is required on the host. + +## Usage + +To get some help, simply run: +``` +make help +``` + +Typically, the sequence to build an image is: + +``` +# make build +... +# make export +... +# make clean +``` + +## How it works + +The Dockerfile is generic: it simply inherits from a Debian image. +When running a 'docker build': + +* Docker instantiates a new container based on the latest Debian image +* Docker copies the current directory inside the container in /root/INSTALL +* then it runs the setup script /root/INSTALL/docker/setup_image.sh + +In turn, this setup script will: + +* source the configuration file /root/INSTALL/docker/image.conf +* execute all scripts contained in /root/INSTALL/setup.d + +When the setup script finishes, Docker commits the temporary container in a new image. + +This image can then be exported to a tarball and/or pushed to a Docker registry.
\ No newline at end of file |