Skip to content

Commit

Permalink
Added comments for including DOCKER_HOST in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed Jun 14, 2023
1 parent 2ba0e73 commit 07ad22b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion biothings/hub/dataload/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@ class DockerContainerDumper(BaseDumper):
- The Docker API on the remote server MUST BE secured with TLS
- A TLS key pair is generated on the Hub server and placed inside the same data plugin folder or the data source folder
All info about Docker client connection MUST BE defined in the `config.py` file, under the DOCKER_CONFIG key, Ex:
All info about Docker client connection MUST BE defined in the `config.py` file, under the DOCKER_CONFIG and DOCKER_HOST key, Ex:
DOCKER_CONFIG = {
"CONNECTION_NAME_1": {
"tls_cert_path": "/path/to/cert.pem",
Expand All @@ -1820,6 +1820,7 @@ class DockerContainerDumper(BaseDumper):
"client_url": "unix://var/run/docker.sock"
}
}
DOCKER_HOST = None
The data_url should match the following format:
docker://CONNECTION_NAME?image=DOCKER_IMAGE&tag=TAG&path=/path/to/remote_file&dump_command="this is custom command"&container_name=CONTAINER_NAME&keep_container=true&get_version_cmd="cmd" # NOQA
Expand Down

0 comments on commit 07ad22b

Please sign in to comment.