Page History
Table of Contents |
---|
Introduction
The JS7 can be used to execute any scripts, executables and programs including Python® scripts.
- Python® is a frequently used scripting language available for Linux, MacOS, Windows and other platforms.
- Docker offers a Python® SDK to manage containers, see https://docs.docker.com/engine/api/sdk/
- This article explains how to use the Python® SDK for Docker® with JS7 job scripts.
Building Blocks
The following building blocks make up the solution:
...
The example makes use of a single job that runs on an Agent with access to the Docker® daemon.
- Download (upload .json): pdStartContainer.workflow.json
...
- The job script looks fairly complex as it maps all options used to run a JS7 Agent from a Docker® container explained with JS7 - Agent Installation for Docker Containers.
- The relevant part is the
client.containers.run()
function that is parameterized with frequently used options to specify the image, the hostname, network etc. - The optional part includes to display log output created on start-up of the container using the
container.logs()
function.
...
Overview
Content Tools