Skip to content

Is it possible to dynamically mount directories? #299

Answered by ghost
axeII asked this question in Questions
Discussion options

You must be logged in to vote

Hello @axeII ,

Yes, the configuration server concept lets you do that. You will need to write a configuration server and configure it in ContainerSSH as described here. This configuration server then needs to return a config structure that tells the backend to mount the specified directory.

With the Docker backend for example, the webhook response would look like this:

{
  "config": {
    "docker": {
      "execution": {
        "host": {
          "binds": [
            "/home/foo:/home/foo"
          ]
        }
      }
    }
  }
}

You can find more information about the possible Docker options here and about the Kubernetes options here.

Please let us know if you have more questions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant