15. Layer root

15.1. Overview

This is the root layer of the MFBASE module.

This layer mainly includes core libraries and utilities like :

  • layerapi2 library and utilities which manage the layer system

  • wrappers (python3, python…)

  • (and some other documented below)

The root layer is loaded by default and does not depend on another layer. This is the layer dependencies root.

16. Special focus on python wrappers

16.1. python3 wrapper

The python3 wrapper is available in ${MFEXT_HOME}/bin. It executes a python3 interpreter with following layers loaded :

  • python3@mfext (if installed)

  • python3@mfcom (if installed)

  • scientific_core@mfext ` (if installed)

  • python3@{current_module} (if installed)

So, if you want to execute a python3 script without any question about currently loaded layers, this is the way to go.

For example:

#!/usr/bin/env python3

print("this code will be always executed in python3 environment")
print("(thanks to the above python3 shebang)")

or

python3 /path/to/a/python3/script.py

16.2. python wrapper

The python wrapper is available in ${MFEXT_HOME}/bin. It works exactly as the above wrappers. But the major python version is selected with the METWORK_PYTHON_MODE environment variable.

16.3. Metadata

16.3.1. Layer Home

/opt/metwork-mfbase-0.9

16.3.2. Label

root@mfbase

16.3.3. Package

metwork-mfbase-minimal

16.3.4. Dependencies

  • misc@mfext

  • python3_misc@mfext

  • scientific_core@mfext

  • #+python3_circus@mfext

  • #+rpm@mfext

  • openresty@mfext

16.4. Utilities

16.4.1. mfbase.stop

Stop the mfbase module. This is nearly the same thing than service metwork stop mfbase (as root user).

16.4.2. mfbase.status

Get the status of the mfbase module. This is nearly the same thing than service metwork status mfbase (as root user).

The (unix) return code will be 0 if the module is ok.

16.4.3. mfbase_wrapper

/bin/sh: mfbase_wrapper: command not found