From 432b2077915bb09142b63a811cc3010fd40e2402 Mon Sep 17 00:00:00 2001 From: Sebastien D Date: Wed, 28 Jun 2017 10:23:32 +0200 Subject: Doc: move docker image build in build part. --- README.md | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3c119db..a976e15 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit 1.2.3-korg