Skip to content

How to establish the configuration? #1

@YourDeveloperFriend

Description

@YourDeveloperFriend

I'm trying to figure out the best way to configure a docker container. Each cell will define in its documentation certain options that are available for configuration purposes. For example, the data-store example gives the 'beforeSave' hook. So, we have to be able to pass some kind of configuration to the container:

{
    "beforeSave": {
        "port": "8080",
        "event": "transform"
    }
}

I'm not even sure how that works in a docker container. Are they all considered to be on the localhost? So within data-store, can we just do this:

connect: function(event) { // event === config.beforeSave
  http.connect('http://localhost:' + event.port + '/' + event.event);
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions