How to analyze local git repositories (when running CodeScene in Docker)?

    CodeScene has a couple of options to analyze git repositories stored on your local disk which you can choose when creating a new project:


    However, these are not enabled by default when running CodeScene in docker.

    This is because "Local" means "local inside the container", not on the host.

    To enable this feature, you need to mount your host's directory where your repositories are stored to the Docker container and set the FEATURE_FLAGS__LOCAL_REPO_PROJECTS env var to true.

    Here's an excerpt from a docker-compose.yaml file that does that:

    • environment:
      # Enable local path options

      - FEATURE_FLAGS__LOCAL_REPO_PROJECTS=true
    • volumes:
      # Mount a dir where you can put pre-cloned local repos to make them available on

      # the same path inside the container

      - ${HOME}:${HOME}