Skip to content

Support for running Components within Docker Containers #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from

Conversation

btgoodwin
Copy link

This PR contains an extension to the standard GPP that, if present and permitted, allows the GPP to use Docker to execute a Component from within its own Docker Container rather than the GPP's environment. This is useful for when a Component has environmental dependencies that are not easily portable in the usual manner (softpkg dependencies, for example).

This extension does not make the GPP require Docker since it is only accessing it from the command line.

The requirement on the Component's Docker Container is that it contains the same release of REDHAWK SDR and its WORKDIR is set to $SDRROOT/dom.

This extension includes 3 new properties named docker_omniorb_cfg, docker_image, and docker_volume

Name Kind Purpose
docker_omniorb_cfg property Provides a means to configure the container's /etc/omniORB.cfg through volume mapping
docker_image allocation Provides a means for Components to depend on their image name during deployment
docker_volume allocation Provides a means for Components to depend on any additional Docker Volumes during deployment

This extension requires a dependent Component to set the exec (command line) property IDs __DOCKER_IMAGE__ and, optionally, __DOCKER_ARGS__. The first should be equal to the docker_image dependency, above. And the latter should contain volume mounting information if any docker_volume names are included. Otherwise it can be populated with any additional Docker runtime arguments the Component requires.

An early demo of this (predating the allocation properties) can be seen here.

@btgoodwin btgoodwin changed the base branch from develop-2.0 to develop-2.1 September 12, 2017 19:00
@btgoodwin btgoodwin changed the base branch from develop-2.1 to develop-2.0 September 12, 2017 19:01
@shmahon
Copy link
Contributor

shmahon commented Dec 14, 2018

Closing this PR as OBE by PR #6 which is still being evaluated for inclusion in a future version of the GPP. Thank you for your contribution to this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants