Skip to content

Commit 8bd3525

Browse files
committed
DOC: more about installing, maintaining
1 parent f316197 commit 8bd3525

File tree

2 files changed

+71
-12
lines changed

2 files changed

+71
-12
lines changed

doc/install.rst

+15-12
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,27 @@ The details vary depending upon the hardware that you want to share. These
88
instructions are work in progress, and contributions and feedback are welcome.
99
Please open a ticket at https://github.com/rerobots/hardshare/issues
1010

11-
Main concepts, components
12-
-------------------------
11+
Installation instructions are provided for modern GNU/Linux distributions, such
12+
as Ubuntu_. We are working to support other kinds of hosts, including Windows,
13+
macOS, and FreeBSD.
14+
15+
16+
Main aspects
17+
------------
1318

1419
There are 3 main aspects to an operational ``hardshare`` installation:
1520

1621
1. API token for a rerobots_ user account,
17-
2. a container provider (also known as cprovider),
22+
2. a container provider (also known as *cprovider*),
1823
3. ``hardshare`` client.
1924

2025
Instructions about getting an API token are `in the rerobots Web Guide
2126
<https://help.rerobots.net/webui.html#making-and-revoking-api-tokens>`_.
2227

2328
Hardshare shares hardware among remote users through containers. The term
24-
"container" in the context of hardshare includes Linux containers. Supporting
25-
software that facilitates containers in hardshare are known cproviders. For new
26-
users, Docker is a good first cprovider to try and is indeed the default in a
29+
*container* in the context of hardshare includes Linux containers. Supporting
30+
software that facilitates containers in hardshare are known *cproviders*. For new
31+
users, Docker is a good first cprovider to try and is the default in a
2732
newly installed ``hardshare`` client configuration.
2833

2934
Finally, the primary client is implemented in Python and `available via PyPI
@@ -41,14 +46,12 @@ In most cases, Docker images are available via Docker Hub. For example, ::
4146

4247
which pulls the image from `Docker Hub <https://hub.docker.com/r/rerobots/hs-generic>`_.
4348

44-
In the directory ``robots`` of the sourcetree, there are Dockerfiles that can be
45-
used to create images for containers that are known to work on some robot
46-
hardware, as described in the respective subdirectories. These can be `browsed
47-
on GitHub <https://github.com/rerobots/hardshare/tree/master/robots>`_.
48-
49-
::
49+
This image and others are defined by Dockerfiles in the directory ``robots`` of
50+
the sourcetree. These can be `browsed on GitHub
51+
<https://github.com/rerobots/hardshare/tree/master/robots>`_. To build the image from source files::
5052

5153
docker build -t hs.rerobots.net/generic:latest -f Dockerfile .
5254

5355

5456
.. _rerobots: https://rerobots.net/
57+
.. _Ubuntu: https://ubuntu.com/download/desktop

doc/maint.rst

+56
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,59 @@ Maintenance
33

44
This page describes common routines for maintaining hardshare configurations and
55
shared devices. Another page provides detailed discussion about :doc:`bestpractices`.
6+
7+
8+
.. highlight:: none
9+
10+
Listing local configurations
11+
----------------------------
12+
13+
::
14+
15+
hardshare --format=yaml config -l
16+
17+
::
18+
19+
local:
20+
err_keys: {}
21+
keys:
22+
- /home/scott/.rerobots/keys/jwt.txt
23+
ssh_key: /home/scott/.ssh/unodist
24+
version: 0
25+
wdeployments:
26+
- cargs: []
27+
container_name: rrc
28+
cprovider: podman
29+
id: b47cd57c-833b-47c1-964d-79e5e6f00dba
30+
image: hs-generic
31+
init_inside: []
32+
owner: scott
33+
terminate: []
34+
remote:
35+
deployments:
36+
- date_created: 2020-05-25 06:27 UTC
37+
id: b47cd57c-833b-47c1-964d-79e5e6f00dba
38+
origin: null
39+
owner: scott
40+
41+
42+
Start, check, and stop daemons
43+
------------------------------
44+
45+
::
46+
47+
hardshare ad -d
48+
hardshare status
49+
hardshare terminate
50+
51+
52+
Updating API tokens
53+
-------------------
54+
55+
Remove any expired API tokens::
56+
57+
hardshare config -p
58+
59+
Then, `get a new API token <https://rerobots.net/tokens>`_, and add it::
60+
61+
hardshare config --add-key path/to/your/jwt.txt

0 commit comments

Comments
 (0)