allegroai / clearml-server

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Other
364 stars 132 forks source link

Git package is not installed by default in node:20-bookworm-slim #238

Closed markBETA closed 3 months ago

markBETA commented 3 months ago

Hi,

While trying to compile the ClearML server Docker image, I get the following error:

[webapp_builder 3/6] RUN git clone https://github.com/allegroai/clearml-web.git clearml-web
#17 0.176 /bin/sh: 1: git: not found
#17 ERROR: process "/bin/sh -c git clone ${CLEARML_WEB_GIT_URL} clearml-web" did not complete successfully: exit code: 127
------
 > [webapp_builder 3/6] RUN git clone https://github.com/allegroai/clearml-web.git clearml-web:
0.176 /bin/sh: 1: git: not found
------
Dockerfile:8
--------------------
   6 |     WORKDIR /opt
   7 |     
   8 | >>> RUN git clone ${CLEARML_WEB_GIT_URL} clearml-web
   9 |     RUN mv clearml-web /opt/open-webapp
  10 |     COPY --chmod=744 docker/build/internal_files/build_webapp.sh /tmp/internal_files/
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone ${CLEARML_WEB_GIT_URL} clearml-web" did not complete successfully: exit code: 127

Looks like the git package is not included by default with the node:20-bookworm-slim base image used to compile the Angular single-page application. Adding the following line solves the problem:

RUN apt-get update && apt-get install -y git
oren-allegro commented 3 months ago

@markBETA - thanks for notifying. Issue was fixed.