CCF/doc/operations/run_setup.rst

72 строки
2.4 KiB
ReStructuredText

Setup CCF Runtime Environment
=============================
Environment Setup
-----------------
First, follow the steps described in :doc:`/build_apps/install_bin`.
Then, to quickly set up the dependencies necessary to start CCF applications, simply run:
.. tab:: SNP
.. code-block:: bash
$ cd /opt/ccf_snp/getting_started/setup_vm
$ ./run.sh app-run.yml --extra-vars "platform=snp"
.. tab:: Virtual
.. code-block:: bash
$ cd /opt/ccf_virtual/getting_started/setup_vm
$ ./run.sh app-run.yml --extra-vars "platform=virtual"
Runtime Containers
------------------
Pre-built runtime container images can be obtained from the `Microsoft Artifact Registry <https://mcr.microsoft.com/en-us/catalog?search=ccf>`_. Note that none of these images are tagged as ``latest`` and so a specific version must always be specified on pull.
The runtime images do not contain any particular CCF application, and may be helpful when deploying CCF nodes via Docker, Kubernetes, etc. It is up to the operator(s) to launch the appropriate CCF application and start and manage the CCF node.
.. note:: The runtime images are optimised for size above all. If you need an image that comes with peripheral utilities, you probably want the :ref:`Build Container <contribute/build_setup:Build Container>` instead.
C++ Apps
~~~~~~~~
The ``ghcr.io/microsoft/ccf/app/run/*`` containers can be run to deploy C++ apps. They contain the ``cchost`` binary and the dependencies required to spin up a CCF node.
.. tab:: SNP
.. code-block:: bash
$ export VERSION="5.0.0-rc0"
$ docker pull ghcr.io/microsoft/ccf/app/run/snp:ccf-$VERSION
.. tab:: Virtual
.. code-block:: bash
$ export VERSION="5.0.0-rc0"
$ docker pull ghcr.io/microsoft/ccf/app/run/virtual:ccf-$VERSION
JavaScript/TypeScript Apps
~~~~~~~~~~~~~~~~~~~~~~~~~~
The ``ghcr.io/microsoft/ccf/app/run-js/*`` containers can be run to deploy JavaScript/TypeScripts apps. They contain the ``cchost`` binary, the ``libjs_generic`` native application to run JavaScript/TypeScript apps, and the dependencies required to spin up a CCF node.
.. tab:: SNP
.. code-block:: bash
$ export VERSION="5.0.0-rc0"
$ docker pull ghcr.io/microsoft/ccf/app/run-js/snp:ccf-$VERSION
.. tab:: Virtual
.. code-block:: bash
$ export VERSION="5.0.0-rc0"
$ docker pull ghcr.io/microsoft/ccf/app/run-js/virtual:ccf-$VERSION