-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Borg93
committed
May 16, 2024
1 parent
b5d3373
commit 6c9a252
Showing
5 changed files
with
251 additions
and
247 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM borg93/cuda-12-py310:0.0.1 | ||
WORKDIR /app | ||
COPY ./dist/htrflow_core-0.0.1-py3-none-any.whl /tmp/ | ||
RUN python3 -m pip install /tmp/htrflow_core-0.0.1-py3-none-any.whl[local_models,cli] \ | ||
&& rm /tmp/htrflow_core-0.0.1-py3-none-any.whl \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& cd /app \ | ||
&& mkdir outputs input pipeline logs models | ||
# CMD ["htrflow", "--help"] | ||
# docker build -t borg93/htrflow_im:0.0.1 . | ||
# docker push borg93/htrflow_im:0.0.1 | ||
# docker run --gpus all -it --rm htrflow_im:latest /bin/bash | ||
# docker exec -it <c_id> /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "3.8" | ||
|
||
services: | ||
htrflow: | ||
image: htrflow-test | ||
|
||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: 1 | ||
capabilities: [gpu] | ||
|
||
command: | ||
[ | ||
"/bin/sh", | ||
"-c", | ||
"htrflow pipeline pipeline/im-pipeline.yaml input/1107 --logfile logs/htrflow/htrflow_core_1107.log", | ||
] | ||
|
||
volumes: | ||
- ./input-volume:/app/input | ||
- ./output-volume:/app/outputs | ||
- ./logs-volume:/app/logs | ||
- ./pipeline:/app/pipeline | ||
- ./.cache:/app/models | ||
|
||
configs: | ||
config.yaml: | ||
external: false | ||
file: im-pipeline.yaml | ||
|
||
networks: | ||
default: | ||
driver: bridge |
Oops, something went wrong.