Sign inSign up

vcwc/bash.wrapper

By vcwc

•Updated almost 6 years ago

Image
0

2.0K

vcwc/bash.wrapper repository overview

⁠vcwc/bash.wrapper Image

Bash image with wrapper functionality.
See vcwc.docs.overview for more information on the vcwc ecosystem.

[DOCUMENTATION TO BE UPDATED]

⁠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: /vcwc/bin/bash/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:

  • VCW_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 vcwc wrapper JSON.

wrapper Commandline Flags in detail⁠

wrapper Library in detail⁠

⁠executionplane Library

Location: /vcwc/bin/bash/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: /vcwc/bin/bash

Auxiliary methods that are accessible from the commandline.

Auxiliary Methods in detail⁠

⁠Common Folder Structures

All images have the vcwc 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.1 MB

Last updated

almost 6 years ago

docker pull vcwc/bash.wrapper