Skip to main content

IOC Builder for EPICS and Kubernetes

Project description

Code CI Docs CI Test Coverage Latest PyPI version black Apache License

This tool supports building container images for Generic EPICS IOCs and generating IOC Instances from those Generic IOCs at container runtime. It is targetted at running IOCs in Kubernetes, but the images it creates can execute in any container runtime, such as docker or podman.

PyPI

pip install ibek

Source code

https://github.com/epics-containers/ibek

Documentation

https://epics-containers.github.io/ibek

Releases

https://github.com/epics-containers/ibek/releases

The documentation is still under construction. For the moment the best pages to read are the following:

The command line interface for ibek is as follows. The most up to date version of this can be found by running ibek --help.

Usage: ibek [OPTIONS] COMMAND [ARGS]...

IOC Builder for EPICS and Kubernetes
Provides support for building generic EPICS IOC container images and for running IOC instances
in a Kubernetes cluster.

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────╮
│ --version                     Print the version of ibek and exit                              │
│ --install-completion          Install completion for the current shell.                       │
│ --show-completion             Show completion for the current shell, to copy it or customize  │
│                               the installation.                                               │
│ --help                        Show this message and exit.                                     │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────────╮
│ support    Commands for building support modules during container build                       │
│ ioc        Commands for building generic IOCs during container build                          │
│ startup    Commands for building IOC instance startup files at container runtime              │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯

Usage: ibek support [OPTIONS] COMMAND [ARGS]...

Commands for building support modules during container build

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────────╮
│ apt-install         Install debian packages into the container. If they have an http:// or    │
│                     https:// prefix then they will be downloaded and installed from file.     │
│ git-clone           clone a support module from a remote repository                           │
│ register            prepare the configure RELEASE files to build a support module inside an   │
│                     epics-containers build                                                    │
│ add-libs            declare the libraries for this support module for inclusion in IOC        │
│                     Makefile                                                                  │
│ add-dbds            declare the dbd files for this support module for inclusion in IOC        │
│                     Makefile                                                                  │
│ add-release-macro   add or replace a macro the global RELEASE file                            │
│ add-config-macro    add or replace a macro in CONFIG_SITE.linux-x86_64.Common file            │
│ add-to-config-site  add some text to a support module's CONFIG_SITE file                      │
│ compile             compile a support module after preparation with `ibek support register`   │
│                     etc.                                                                      │
│ generate-links      generate symlinks to the bob, pvi and support YAML for a compiled IOC     │
│ generate-schema     Produce JSON global schema for all <support_module>.ibek.support.yaml     │
│                     files                                                                     │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯

Usage: ibek ioc [OPTIONS] COMMAND [ARGS]...

Commands for building generic IOCs during container build

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────────╮
│ generate-makefile  get the dbd and lib files from all support modules and generate            │
│                    iocApp/src/Makefile from iocApp/src/Makefile.jinja                         │
│ compile            Compile a generic IOC after support modules are registered and compiled    │
│ build              EXPERIMENTAL: Attempt to interpret the Dockerfile and run it's commands    │
│                    inside the devcontainer. For internal, incremental builds of the           │
│                    Dockerfile.                                                                │
│ generate-schema    Create a json schema from a number of support_module.ibek.support.yaml     │
│                    files                                                                      │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯

Usage: ibek startup [OPTIONS] COMMAND [ARGS]...

Commands for building IOC instance startup files at container runtime

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────────╮
│ generate          Build a startup script for an IOC instance                                  │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯

See https://epics-containers.github.io/ibek for current documentation.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ibek-1.4.0.tar.gz (93.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ibek-1.4.0-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file ibek-1.4.0.tar.gz.

File metadata

  • Download URL: ibek-1.4.0.tar.gz
  • Upload date:
  • Size: 93.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for ibek-1.4.0.tar.gz
Algorithm Hash digest
SHA256 f3aa913aeb38657e0c2fde88c0b3d71ef6fa8c25093695a3d6eb32fe53d51f16
MD5 8fbee3fde57277298b8f377fd16f40c4
BLAKE2b-256 002394afa00fe18662db6cd6700319994f1bca42bf7fffd249551e2cfbc0c846

See more details on using hashes here.

File details

Details for the file ibek-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: ibek-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for ibek-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 115717cfb538292f831b23012ae674302294f49ff2d3682bd00ef3aa7e568028
MD5 3df78fcb3977bd7170da2ce7638e2514
BLAKE2b-256 1377c334d9988a72294eb1661e60a990c7897243f5f68baa5d96901b4f9ceb55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page