How can I clean project after build the CodeChecker? #3548
-
I actually use a docker to setup your really awesome project. And I recognize that after build size of it is 500mb. SO i decided to remove everything except folder build. And I met a lot of problems such as no module found etc. So how can I clean unnecessary stuff after build? My command looks like
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Much better now with |
Beta Was this translation helpful? Give feedback.
-
If you are using a virtual env you will be able to build the package but you will not be able to run a container because the venv will be activated only during the build process and not when the container will be created. We already have a docker image for the web part: https://github.com/Ericsson/codechecker/blob/master/web/docker/Dockerfile Instead of creating a virtual env you should install the python requirements in the following way: codechecker/web/docker/Dockerfile Lines 76 to 101 in 75ef0ec Also If you don't want to build the GUI part you can skip to install those requirements. |
Beta Was this translation helpful? Give feedback.
If you are using a virtual env you will be able to build the package but you will not be able to run a container because the venv will be activated only during the build process and not when the container will be created.
We already have a docker image for the web part: https://github.com/Ericsson/codechecker/blob/master/web/docker/Dockerfile
You can check it how we build the CodeChecker.
Instead of creating a virtual env you should install the python requirements in the following way:
codechecker/web/docker/Dockerfile
Lines 76 to 101 in 75ef0ec