Skip to content

Commit

Permalink
Ray bug fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Constantin M Adam <cmadam@us.ibm.com>
  • Loading branch information
cmadam committed Oct 19, 2024
1 parent 310d813 commit 7d97cef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions transforms/universal/fdedup/ray/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ ARG BASE_IMAGE=docker.io/rayproject/ray:2.24.0-py310

FROM ${BASE_IMAGE}

USER ray

RUN pip install --upgrade --no-cache-dir pip

# install pytest
Expand All @@ -13,16 +15,18 @@ COPY --chown=ray:users data-processing-lib-python/ data-processing-lib-python/
RUN cd data-processing-lib-python && pip install --no-cache-dir -e .
COPY --chown=ray:users data-processing-lib-ray/ data-processing-lib-ray/
RUN cd data-processing-lib-ray && pip install --no-cache-dir -e .
COPY --chown=ray:users python-transform/ python-transform/
RUN cd python-transform && pip install --no-cache-dir -e .

# Install ray project source
COPY --chown=ray:users src/ src/
COPY --chown=ray:users pyproject.toml pyproject.toml
COPY --chown=ray:users README.md README.md
COPY --chown=ray:users images/ images/
RUN pip install --no-cache-dir -e .

# copy the main() entry point to the image
COPY ./src/fuzzy_dedup_ray.py .
# copy source files needed by test-image
COPY ./src/signature_calc_transform_ray.py fdedup_transform_ray.py
COPY ./src/signature_calc_local_ray.py local/fdedup_local_ray.py

# copy test
COPY test/ test/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


# create parameters
input_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "output", "bands_consolidated"))
input_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "output", "bands"))
output_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "output", "docs_to_remove"))
local_conf = {
"input_folder": input_folder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from data_processing_ray.runtime.ray.runtime_configuration import (
RayTransformRuntimeConfiguration,
)
from data_processing_ray.runtime.ray.transform_launcher import RayTransformLauncher
from signature_calc_transform import SignatureCalculationTransformConfiguration


Expand Down

0 comments on commit 7d97cef

Please sign in to comment.