Skip to content

Commit

Permalink
Use flops-utils from the same repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Malyuk-A committed Oct 4, 2024
1 parent 4072970 commit cc73591
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 13 deletions.
7 changes: 1 addition & 6 deletions flops_manager_package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ ENV FLOPS_MQTT_BROKER_URL=flops_mqtt

ENV SYSTEM_MANAGER_PORT=10000

RUN poetry add git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
#RUN poetry add git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library/flops_utils
# !!!!!!!!!!!!!! TODO test if this is infact working as expected, if so, continue with migrating futher places wher flops_utils is used
# Do not forget the CLI
# Once this is confirmed to be working, put the legacy project in private mode,
# once this is also working maybe even delete the legacy project
RUN poetry add git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library

CMD ["poetry", "run", "python", "main.py"]
2 changes: 1 addition & 1 deletion image_builder_package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ RUN conda install -y \
gitpython>=3.1.42 \
mlflow>=2.12.1

RUN pip install --no-cache-dir git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
RUN pip install --no-cache-dir git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library

COPY /fl_image_builder /image_builder
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
flwr_datasets == 0.1.0
git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library
2 changes: 1 addition & 1 deletion image_builder_package/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gitpython ~= 3.1.42
# Might be worth investigating as FUTURE WORK.
#mlflow-skinny ~= 2.12.1
mlflow ~= 2.12.1
git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library

# Not used because pydantic needs rust and other tooling which would further bload the current slim base image.
# pydantic ~= 2.6.4
2 changes: 1 addition & 1 deletion ml_data_server_package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ ENV FLASK_DEBUG=TRUE
ENV ML_DATA_SERVER_PORT=11027
EXPOSE $ML_DATA_SERVER_PORT

RUN poetry add git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
RUN poetry add git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library

CMD ["poetry", "run", "python", "main.py"]
2 changes: 1 addition & 1 deletion mock_data_provider_package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /mock_data_provider
COPY mock_data_provider /mock_data_provider
RUN poetry install

RUN poetry add git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
RUN poetry add git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library

ENV ML_DATA_SERVER_COMMUNICATION_CHANNEL_PORT=11027
EXPOSE $ML_DATA_SERVER_COMMUNICATION_CHANNEL_PORT
2 changes: 1 addition & 1 deletion project_observer_package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /project_observer
COPY project_observer /project_observer
RUN poetry install

RUN poetry add git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
RUN poetry add git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library

ENV PROJECT_OBSERVER_PORT=2727
EXPOSE $PROJECT_OBSERVER_PORT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ WORKDIR /inference_tester
COPY inference_tester /inference_tester
RUN poetry install

RUN poetry add git+https://github.com/Malyuk-A/tmp_flops_utils.git@main
RUN poetry add git+https://github.com/oakestra/addon-FLOps.git@main#subdirectory=utils_library

CMD poetry run python main.py

0 comments on commit cc73591

Please sign in to comment.