summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien D <seb.douheret@gmail.com>2017-06-28 10:23:32 +0200
committerGitHub <noreply@github.com>2017-06-28 10:23:32 +0200
commit432b2077915bb09142b63a811cc3010fd40e2402 (patch)
tree08fe5522153e3294e2f7ebd5624811bff3b6d9a1
parent8c06a00c2437d0facb61b251c10a4a5729369166 (diff)
Doc: move docker image build in build part.
-rw-r--r--README.md32
1 files 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