Martin Blanchard pushed to branch mablanch/000-update-buildstream-doc at BuildGrid / buildgrid
Commits:
-
33158b7f
by Valentin David at 2018-12-18T13:56:43Z
-
a1ee2373
by Martin Blanchard at 2018-12-18T15:31:41Z
5 changed files:
- buildgrid/_app/commands/cmd_capabilities.py
- buildgrid/_app/commands/cmd_cas.py
- buildgrid/_app/commands/cmd_execute.py
- buildgrid/_app/commands/cmd_operation.py
- docs/source/using_buildstream.rst
Changes:
... | ... | @@ -43,7 +43,8 @@ def cli(context, remote, instance_name, auth_token, client_key, client_cert, ser |
43 | 43 |
"""Entry point for the bgd-capabilities CLI command group."""
|
44 | 44 |
try:
|
45 | 45 |
context.channel, _ = setup_channel(remote, auth_token=auth_token,
|
46 |
- client_key=client_key, client_cert=client_cert)
|
|
46 |
+ client_key=client_key, client_cert=client_cert,
|
|
47 |
+ server_cert=server_cert)
|
|
47 | 48 |
|
48 | 49 |
except InvalidArgumentError as e:
|
49 | 50 |
click.echo("Error: {}.".format(e), err=True)
|
... | ... | @@ -52,7 +52,8 @@ def cli(context, remote, instance_name, auth_token, client_key, client_cert, ser |
52 | 52 |
"""Entry point for the bgd-cas CLI command group."""
|
53 | 53 |
try:
|
54 | 54 |
context.channel, _ = setup_channel(remote, auth_token=auth_token,
|
55 |
- client_key=client_key, client_cert=client_cert)
|
|
55 |
+ client_key=client_key, client_cert=client_cert,
|
|
56 |
+ server_cert=server_cert)
|
|
56 | 57 |
|
57 | 58 |
except InvalidArgumentError as e:
|
58 | 59 |
click.echo("Error: {}.".format(e), err=True)
|
... | ... | @@ -53,7 +53,8 @@ def cli(context, remote, instance_name, auth_token, client_key, client_cert, ser |
53 | 53 |
"""Entry point for the bgd-execute CLI command group."""
|
54 | 54 |
try:
|
55 | 55 |
context.channel, _ = setup_channel(remote, auth_token=auth_token,
|
56 |
- client_key=client_key, client_cert=client_cert)
|
|
56 |
+ client_key=client_key, client_cert=client_cert,
|
|
57 |
+ server_cert=server_cert)
|
|
57 | 58 |
|
58 | 59 |
except InvalidArgumentError as e:
|
59 | 60 |
click.echo("Error: {}.".format(e), err=True)
|
... | ... | @@ -56,7 +56,8 @@ def cli(context, remote, instance_name, auth_token, client_key, client_cert, ser |
56 | 56 |
"""Entry point for the bgd-operation CLI command group."""
|
57 | 57 |
try:
|
58 | 58 |
context.channel, _ = setup_channel(remote, auth_token=auth_token,
|
59 |
- client_key=client_key, client_cert=client_cert)
|
|
59 |
+ client_key=client_key, client_cert=client_cert,
|
|
60 |
+ server_cert=server_cert)
|
|
60 | 61 |
|
61 | 62 |
except InvalidArgumentError as e:
|
62 | 63 |
click.echo("Error: {}.".format(e), err=True)
|
... | ... | @@ -4,9 +4,11 @@ |
4 | 4 |
BuildStream client
|
5 | 5 |
==================
|
6 | 6 |
|
7 |
-`BuildStream`_ is a free software tool for building and integrating software
|
|
7 |
+`BuildStream`_ is a free software tool for building and integrating software
|
|
8 | 8 |
stacks. It supports remote build execution using the remote execution API
|
9 |
-(REAPI) v2.
|
|
9 |
+(REAPI) v2. The project's documentation has a detailed section about its
|
|
10 |
+`remote execution subsystem architecture`_ that you are very recommanded to
|
|
11 |
+read first.
|
|
10 | 12 |
|
11 | 13 |
.. note::
|
12 | 14 |
|
... | ... | @@ -15,6 +17,7 @@ stacks. It supports remote build execution using the remote execution API |
15 | 17 |
remote execution.
|
16 | 18 |
|
17 | 19 |
.. _BuildStream: https://buildstream.build
|
20 |
+.. _remote execution subsystem architecture: https://buildstream.gitlab.io/buildstream/arch_remote_execution.html
|
|
18 | 21 |
.. _install it from sources: https://buildstream.build/source_install.html
|
19 | 22 |
|
20 | 23 |
|
... | ... | @@ -43,23 +46,23 @@ Project configuration |
43 | 46 |
In order to activate remote build execution at project-level, the project's
|
44 | 47 |
``project.conf`` file must declare two specific configuration nodes:
|
45 | 48 |
|
46 |
-- ``artifacts`` for `remote CAS endpoint details`_.
|
|
49 |
+- ``artifacts`` for `remote cache endpoint details`_.
|
|
47 | 50 |
- ``remote-execution`` for `remote execution endpoint details`_.
|
48 | 51 |
|
49 | 52 |
.. important::
|
50 | 53 |
|
51 | 54 |
BuildStream does not support multi-instance remote execution servers and will
|
52 | 55 |
always submit remote execution request omitting the instance name parameter.
|
53 |
- Thus, you must declare an unnamed `""` instance in your server configuration
|
|
56 |
+ Thus, you must declare an unnamed `''` instance in your server configuration
|
|
54 | 57 |
to workaround this.
|
55 | 58 |
|
56 | 59 |
.. important::
|
57 | 60 |
|
58 |
- If you are using BuildGrid's artifact server, the server instance **must**
|
|
59 |
- accept pushes from your client for remote execution to be possible.
|
|
61 |
+ If you are using BuildStream's artifact server, the server instance pointed
|
|
62 |
+ by the ``storage-service`` key **must** accept pushes from your client for
|
|
63 |
+ remote execution to be possible.
|
|
60 | 64 |
|
61 |
- |
|
62 |
-.. _remote CAS endpoint details: https://buildstream.gitlab.io/buildstream/install_artifacts.html#user-configuration
|
|
65 |
+.. _remote cache endpoint details: https://buildstream.gitlab.io/buildstream/format_project.html#artifact-server
|
|
63 | 66 |
.. _remote execution endpoint details: https://buildstream.gitlab.io/buildstream/format_project.html#remote-execution
|
64 | 67 |
|
65 | 68 |
|
... | ... | @@ -167,7 +170,15 @@ append at the end of the ``project.conf`` file from the root directory: |
167 | 170 |
push: true
|
168 | 171 |
|
169 | 172 |
remote-execution:
|
170 |
- url: http://localhost:50051
|
|
173 |
+ execution-service:
|
|
174 |
+ url: http://localhost:50051
|
|
175 |
+ storage-service:
|
|
176 |
+ url: http://localhost:50051
|
|
177 |
+ client-key: ''
|
|
178 |
+ client-cert: ''
|
|
179 |
+ server-cert: ''
|
|
180 |
+ action-cache-service:
|
|
181 |
+ url: http://localhost:50051
|
|
171 | 182 |
|
172 | 183 |
This activates BuildGrid's remote execution mode and points to the unnamed
|
173 | 184 |
remote execution server instance at ``localhost:50051``.
|