Skip to content

Add doodHostWorkingDirectory option#316

Merged
smikitky merged 1 commit intomasterfrom
feature-dood-option
Oct 1, 2022
Merged

Add doodHostWorkingDirectory option#316
smikitky merged 1 commit intomasterfrom
feature-dood-option

Conversation

@smikitky
Copy link
Member

@smikitky smikitky commented Oct 1, 2022

This adds a new doodHostWorkingDirectory option to pluginJobRunner.

When using CIRCUS with the DooD (docker-outside-of-docker) approach, the main CIRCUS container and a plug-in container will be created like this:

Host --------------------------------------> CIRCUS
       -v c:\circus-data:/var/circus/data

Host -----------------------------------------------> Plugin (eg MRA-CAD)
       -v c:\circus-data\cs-tmp\dd6b343:/circus/in
          ^^^^^^^^^^^^^^^^^^^^^

CIRCUS running in a container must ask the host to create the plug-in container, but it does not know the path of the parent host directory (i.e., "c:\circus-data\cs-tmp"). This option is used to set this path. The path must correspond to the workingDirectory option.

To use this, add something like the following in circus config file (the actual value will depend on how you mounted volumes while creating the main CIRCUS container):

pluginJobRunner: {
  options: {
    workingDirectory: '/var/circus/data/cs-tmp',
    doodHostWorkingDirectory: 'c:\\circus-data\\cs-tmp'
  }
}

@smikitky smikitky merged commit 6f80bdc into master Oct 1, 2022
@smikitky smikitky deleted the feature-dood-option branch October 1, 2022 07:41
@smikitky smikitky changed the title Add doodHostWorkingPath option Add doodHostWorkingDirectory option Oct 1, 2022
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.

1 participant