-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74f3577
commit 366aa45
Showing
5 changed files
with
72 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Container | ||
========= | ||
|
||
Software container images of NetHSM are available for testing and production. They are distributed as OCI images and can be run locally with a compatible executor such as Docker and Podman. | ||
|
||
Compared to the NetHSM hardware the following functions are not implemented at software container's REST API: | ||
|
||
* Network configuration | ||
* Factory reset | ||
* Reboot | ||
* Software update | ||
|
||
Refer to the following chapters to learn more about the respective differences. | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
production-image.rst | ||
test-image.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Test Image | ||
---------- | ||
|
||
The image can be obtained from `Docker Hub <https://hub.docker.com/r/nitrokey/nethsm>`_. | ||
|
||
.. warning:: | ||
|
||
Do not use the test image under any circumstances for production data and use cases. | ||
|
||
Tagging Policy | ||
^^^^^^^^^^^^^^ | ||
|
||
The images in the repository are tagged with the Git commit hash from the main branch of the `repository <https://github.com/nitrokey/nethsm>`__. | ||
The latest image is tagged with ``testing``. | ||
|
||
Configuration | ||
^^^^^^^^^^^^^ | ||
|
||
The image can be configured with the following environment variables. | ||
|
||
+----------------------+--------------------------------------+ | ||
| Environment variable | Description | | ||
+======================+======================================+ | ||
| ``DEBUG_LOG`` | Enables extended logging for NetHSM. | | ||
+----------------------+--------------------------------------+ | ||
|
||
Usage | ||
^^^^^ | ||
|
||
The container can be executed as follows. | ||
|
||
.. tabs:: | ||
.. tab:: Docker | ||
.. code-block:: bash | ||
$ docker run --rm -ti -p 8443:8443 docker.io/nitrokey/nethsm:testing | ||
.. tab:: Podman | ||
.. code-block:: bash | ||
$ podman run --rm -ti -p 8443:8443 docker.io/nitrokey/nethsm:testing | ||
This will run NetHSM as a Unix process inside the container and expose the REST API via the HTTPS protocol on port `8443`. | ||
|
||
.. important:: | ||
The container uses a self-signed TLS certificate. | ||
Make sure to use the correct connection settings to establish a connection. | ||
Please refer to chapter `NetHSM introduction <index.html>`__ to learn more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters