diff options
author | Sebastien D <seb.douheret@gmail.com> | 2017-06-28 10:23:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 10:23:32 +0200 |
commit | 432b2077915bb09142b63a811cc3010fd40e2402 (patch) | |
tree | 08fe5522153e3294e2f7ebd5624811bff3b6d9a1 | |
parent | 8c06a00c2437d0facb61b251c10a4a5729369166 (diff) |
Doc: move docker image build in build part.
-rw-r--r-- | README.md | 32 |
1 files changed, 18 insertions, 14 deletions
@@ -41,20 +41,7 @@ Load the pre-build AGL SDK docker image including `xds-server`: wget -O - http://iot.bzh/download/public/2017/XDS/docker/docker_agl_worker-xds-latest.tar.xz | docker load ``` -### Build the container -As an alternative to a pre-build image, you can rebuild the container from scratch. -`xds-server` has been integrated as a flavour of AGL SDK docker image. -So to rebuild docker image just execute following commands: - -```bash -# Clone docker-worker-generator git repo -git clone https://git.automotivelinux.org/AGL/docker-worker-generator -# Start build that will create a docker image -cd docker-worker-generator -make build FLAVOUR=xds -``` - -### List container +### List container You should get `docker.automotivelinux.org/agl/worker-xds:X.Y` image ```bash @@ -225,6 +212,8 @@ Don't forget to open new user session after installing the packages. ### Building +#### Native build + Create a GOPATH variable(must be a full path): ```bash export GOPATH=$(realpath ~/workspace_go) @@ -249,6 +238,20 @@ And to install `xds-server` (by default in `/usr/local/bin`): >make install DESTDIR=$HOME/opt/xds-server >``` +#### XDS docker image + +As an alternative to a pre-build image, you can rebuild the container from scratch. +`xds-server` has been integrated as a flavour of AGL SDK docker image. +So to rebuild docker image just execute following commands: + +```bash +# Clone docker-worker-generator git repo +git clone https://git.automotivelinux.org/AGL/docker-worker-generator +# Start build that will create a docker image +cd docker-worker-generator +make build FLAVOUR=xds +``` + ### Configuration `xds-server` configuration is driven by a JSON config file (`config.json`). @@ -278,6 +281,7 @@ Supported fields in configuration file are (all fields are optional and listed v >**NOTE:** environment variables are supported by using `${MY_VAR}` syntax. + ## Debugging ### XDS server architecture |