Comment on page
The easiest way to use the dockerized Meterian Client is via the script meterian-docker. It accepts all the standard parameters exactly in the same way, but it cannot be used in interactive mode, therefore you will need to provide it with a valid token using the environment variable
METERIAN_API_TOKEN. We suggest you populate such variable in your startup script.
Assuming you put the script in your path, just move in the folder of your project and type:
meterian-docker [Meterian CLI Options]
Alternatively you can set the environment variable
METERIAN_WORKDIRwith the path to your project folder and run the convenience script:
Everything will work exactly like a normal invocation of the client. Please note that, by default, the script binds into the container the standard library cache folders used by the package managers (see the table below for the ones that we bind), so that the execution is as fast as it was running on your machine. If you really want you can avoid this by adding
--unboundto your command line arguments.
The above example will cause the script to use the
meterian/cli:latest-pythonimage: we also provide platform-specific images should you not wish to use the full version to save bandwidth or space, as the "generic" image ("latest") contains all the tooling supported.