I am doing a university project for which I need to a gitlab-ci.yml . So test the gitlab-ci file I installed docker and gitlab runner on my local PC. Now when i run the gitlab runner for the build job, build fails. The reason is, this is a big project which has many library dependencies, and some libraries have sudo make install in their makefiles.
Usually when I run the build locally (without gitlab runner), at the install step it asks for password to proceed with the installation. But how do I achieve this while running in gitlab runner? Is there a way to make the docker container run as root ?
Please advice