NetManAIOps / CIRCA

Causal Inference-based Root Cause Analysis
BSD 3-Clause "New" or "Revised" License
68 stars 11 forks source link

Issue from setting up docker environment #8

Open chensy0715 opened 8 months ago

chensy0715 commented 8 months ago

Hi, I am working on replicating your model. However, I meet the issue in setting up the docker environment. The issue is "Fatal error: you must specify '--save', '--no-save' or '--vanilla'" After I set up the image and run the image.

Could you please provide the guidelines on how to set up the docker environment for me?

limjcst commented 8 months ago

It seems that those 3 options are for R.

As CIRCA is not designed to be a web service, I did not specify what a Docker container should do. Please try to append the following two instructions into your Dockerfile.

COPY circa/ circa/
CMD ["python3", "-m", "circa.experiment", "-h"]

Notice that a Docker container may still stop immediately with this patch. Suppose that the tag of the built image is circa:latest. Execute sudo docker run -it circa:latest bash to do what you want inside the created container.

chensy0715 commented 7 months ago

Could you please tell me where I should put these two lines into dockerfile? Also, Could you provide a complete new Dockfile for me? Many thanks!

limjcst commented 7 months ago

How did you run the image? Could you please provide the executed command?

Do you already have a plan to replicate the model? Could you please provide several commands you want to execute?

I guess your issue is related to Docker, not CIRCA.