Note
This repository makes use of submodules. Therefore, when cloning it you need to include them.
git clone --recurse-submodules https://github.com/odtp-org/odtp-component-xxxxx
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- Tools Information
- How to add this component to your ODTP instance
- Data sheet
- Tutorial
- Credits and References
Tool | Semantic Versioning | Commit | Documentation |
---|---|---|---|
Tool 1 | vX.Y.Z | commit-hash-1 | Documentation 1 Documentation 2 |
Tool 2 | vA.B.C | commit-hash-2 | Documentation 2 |
In order to add this component to your ODTP CLI, you can use. If you want to use the component directly, please refer to the docker section.
odtp new odtp-component-entry \
--name odtp-component \
--component-version v0.0.1 \
--repository Link to repository \
--image Link to dockerhub image \
Parameter | Description | Type | Required | Default Value | Possible Values | Constraints |
---|---|---|---|---|---|---|
A | B | C | D | E | F | G |
Secret Name | Description | Type | Required | Default Value | Constraints | Notes |
---|---|---|---|---|---|---|
A | B | C | D | E | F | G |
File/Folder | Description | File Type | Required | Format | Notes |
---|---|---|---|---|---|
A | B | C | D | E | F |
File/Folder | Description | File Type | Contents | Usage |
---|---|---|---|---|
A | B | C | D | E |
Build the dockerfile.
docker build -t odtp-component .
If you need to pass build arguments, use the --build-arg
flag:
docker build -t odtp-component --build-arg ARG_NAME=ARG_VALUE .
Run the following command. Mount the correct volumes for input/output/logs folders.
docker run -it --rm \
-v {PATH_TO_YOUR_INPUT_VOLUME}:/odtp/odtp-input \
-v {PATH_TO_YOUR_OUTPUT_VOLUME}:/odtp/odtp-output \
-v {PATH_TO_YOUR_LOGS_VOLUME}:/odtp/odtp-logs \
--env-file .env odtp-component
To run the component in development mode, mount the app folder inside the container:
docker run -it --rm \
-v {PATH_TO_YOUR_INPUT_VOLUME}:/odtp/odtp-input \
-v {PATH_TO_YOUR_OUTPUT_VOLUME}:/odtp/odtp-output \
-v {PATH_TO_YOUR_LOGS_VOLUME}:/odtp/odtp-logs \
-v {PATH_TO_YOUR_APP_FOLDER}:/odtp/app \
--env-file .env odtp-component
To run the component with GPU support, use the following command:
docker run -it --rm \
--gpus all \
-v {PATH_TO_YOUR_INPUT_VOLUME}:/odtp/odtp-input \
-v {PATH_TO_YOUR_OUTPUT_VOLUME}:/odtp/odtp-output \
-v {PATH_TO_YOUR_LOGS_VOLUME}:/odtp/odtp-logs \
--env-file .env odtp-component
To run the component in API mode and expose a port, use the following command:
docker run -it --rm \
-v {PATH_TO_YOUR_INPUT_VOLUME}:/odtp/odtp-input \
-v {PATH_TO_YOUR_OUTPUT_VOLUME}:/odtp/odtp-output \
-v {PATH_TO_YOUR_LOGS_VOLUME}:/odtp/odtp-logs \
-p {HOST_PORT}:{CONTAINER_PORT} \
--env-file .env odtp-component
XXXXXXXXXX
This component has been created using the odtp-component-template
v0.5.0
.