-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadme.rst
39 lines (27 loc) · 940 Bytes
/
Readme.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.. highlight:: rst
============================
Modbus weather
============================
-----------------
Running the app
-----------------
#. On your system, install `podman-docker` (or just the `docker`
if it is the tool of your choice).
#. Build the image
.. code-block:: bash
docker build --target runner -t modbus_weather .
#. Run the program
You will need the api_key.env or pass the API_KEY env variable or supply it on the command line.
.. code-block:: bash
docker run --env-file=./api_key.env modbus_weather
---------------
# Run the tests
---------------
.. code-block:: bash
docker build --target builder -t modbus_weather:dev .
docker run modbus_weather:dev
---------------------
# Debug in container
--------------------
.. code-block:: bash
docker run -it --entrypoint /bin/bash -v ../bash_history:/root/.bash_history:z -v .:/app:z modbus_weather:dev