HUB
Sign inSign up

vcwebio/conteco.image.wrapper

By vcwebio

•Updated about 6 years ago

The conteco.image.wrapper image holds the common functionality wrapper for all ContEco containers.

Image
0

9.2K

vcwebio/conteco.image.wrapper repository overview

⁠image.wrapper - Conteco

The conteco.image.wrapper image implements the functionality common to all ContEco containers.
See conteco.docs.overview for more information on the ContEco ecosystem.

⁠Common Functionality

The common functionality mainly consists of the following:

  • wrapper library
    functionality implementing commandline flags and text to JSON output conversion
  • executionplane library
    a logging library with JSON output for bash scripts
  • .invoke
    the API entry point
  • some auxiliary methods
⁠wrapper Library

Location: /conteco/bin/image/wrapper

The wrapper library initialises the container and implements a number of commandline flags.

It exposes two hooks that can be implemented by any image definition:

  • CONTECO_PREENTRYPOINT
    A script that executes after the wrapper PATH has been set but before execution the main part of the entrypoint.

  • output-to-JSON
    A script that filters / reshapes the stdout / stderr output when creating ContEco wrapper JSON.

wrapper Commandline Flags in detail⁠

wrapper Library in detail⁠

⁠executionplane Library

Location: /conteco/bin/image/executionplane

The executionplane library implements a set of logging methods for bash scripts. The log output is in JSON, source being executionplane.

executionplane Library in detail⁠

⁠.invoke API Entry Point

The common functionality includes a common API entrypoint which dispatches execution to a set of scripts which can invoke API methods present in base images.
The API methods have an internal implementation that is not directly accessible from the commandline.

.invoke API Emtry Point in detail⁠

⁠Auxiliary Methods

Location: /conteco/bin/image

Auxiliary methods that are accessible from the commandline.

Auxiliary Methods in detail⁠

⁠Common Folder Structures

All images have the ContEco related assets in a common folder structure.

Common Folder Structure in detail⁠

The image contains the build repository as part of its common folder structure. This repository has itself a common structure.

GIT Repository Structure in detail⁠

Tag summary

Content type

Image

Digest

Size

9.6 MB

Last updated

about 6 years ago

docker pull vcwebio/conteco.image.wrapper