@@ -22,13 +22,14 @@ Example showing how to build labgrid-client image:
2222
2323.. code-block :: bash
2424
25- $ docker build --target labgrid-client -t labgrid- client -f dockerfiles/Dockerfile .
25+ $ docker build --target labgrid-client -t docker.io/ labgrid/ client -f dockerfiles/Dockerfile .
2626
2727 Using `BuildKit <https://docs.docker.com/develop/develop-images/build_enhancements/ >`_
2828is recommended to reduce build times.
2929
30- You can also choose to build all 3 images,
31- with the included script.
30+ You can also choose to build all 3 images with the included script. The script
31+ will automatically use `docker buildx
32+ <https://docs.docker.com/engine/reference/commandline/buildx/> `` if available.
3233
3334.. code-block :: bash
3435
@@ -43,15 +44,13 @@ The script supports ``podman`` as well.
4344 $ ./dockerfiles/build.sh
4445
4546 It builds for the native platform by default. However, building
46- for foreign platforms is also supported using `docker buildx
47- <https://docs.docker.com/build/building/multi-platform/> ` or `podman
48- buildx <https://docs.podman.io/en/latest/markdown/podman-build.1.html> `
49- by passing the platform of choice, e.g. `linux/arm64 `.
47+ for foreign platforms is also supported by passing the platform(s) of choice,
48+ e.g. `linux/arm64 ` as an additional argument.
5049
5150.. code-block :: bash
5251
5352 $ pip install --upgrade setuptools_scm
54- $ ./dockerfiles/build.sh linux/arm64
53+ $ ./dockerfiles/build.sh --platform linux/arm64
5554
5655
5756 Usage
@@ -77,7 +76,7 @@ so you can restart the service without loosing state.
7776.. code-block :: bash
7877
7978 $ docker run -t -p 20408:20408 -v $HOME /crossbar:/opt/crossbar \
80- labgrid- coordinator
79+ docker.io/ labgrid/ coordinator
8180
8281
8382 labgrid-client usage
@@ -90,14 +89,14 @@ ws://192.168.1.42:20408/ws
9089
9190.. code-block :: bash
9291
93- $ docker run -e LG_CROSSBAR=ws://192.168.1.42:20408/ws labgrid- client \
92+ $ docker run -e LG_CROSSBAR=ws://192.168.1.42:20408/ws docker.io/ labgrid/ client \
9493 labgrid-client places
9594
9695 Or running all pytest/labgrid tests at current directory:
9796
9897.. code-block :: bash
9998
100- $ docker run -e LG_CROSSBAR=ws://192.168.1.42:20408/ws labgrid- client \
99+ $ docker run -e LG_CROSSBAR=ws://192.168.1.42:20408/ws docker.io/ labgrid/ client \
101100 pytest
102101
103102
@@ -116,7 +115,7 @@ Start it with something like:
116115
117116 $ docker run -e LG_CROSSBAR=ws://192.168.1.42:20408/ws \
118117 -v $HOME /exporter-conf:/opt/conf \
119- labgrid- exporter
118+ docker.io/ labgrid/ exporter
120119
121120 If using ser2net or if "exporting" e.g. a serial device, the devices needed must be added to Docker container
122121(``docker run --device `` option).
@@ -136,14 +135,8 @@ create a setup with the following instances
136135The environment serves both to allow checking if the environment still function after changes, and can act as an example
137136how to configure the docker images needed to run a minimal setup.
138137
139- To use the staging environment to conduct a smoke test first build the images as instructed below:
140-
141- .. code-block :: bash
142-
143- $ pip install --upgrade setuptools_scm
144- $ ./dockerfiles/build.sh
145-
146- Then use docker compose to start all services except the client:
138+ To use the staging environment to conduct a smoke test, first run docker compose to start all services except the
139+ client:
147140
148141.. code-block :: bash
149142
0 commit comments