Please install the following things system-wide and prior to working with any of our guide:
node.Please ensure that if you are on Windows that you have set the git setting
core.autocrlftofalseandcore.eoltolf!
This will give you a setup of both repositories of the main Git branches.
git clone git@github.com:cobbler/cobbler.gitgit clone git@github.com:cobbler/cobbler-web.gitcobbler directory and execute the following steps:docker build -f docker/develop/develop.dockerfile -t cobbler-dev .docker run -it --rm --name cobbler-dev -p 80:80 -p 443:443 -v ${PWD}:/code cobbler-dev./docker/develop/scripts/setup-supervisor.shtail -f /var/log/cobbler/cobbler.logcobbler-web directory and follow these steps:npm install to install the development and runtime dependencies.npm run build typescript-xmlrpcnpm run build cobbler-apinpm run start cobbler-frontendcobblercobblerWhen developing the Web Frontend it is needed sometimes to switch between different release codestreams. In the following, a few examples of the current codestreams can be seen:
Example :This assumes that you are in the root folder of the backend repository.
git checkout main
docker build -f docker/develop/develop.dockerfile -t cobbler-dev .
docker run -it --rm --name cobbler-dev -p 80:80 -p 443:443 -v ${PWD}:/code cobbler-dev
make clean
./docker/develop/scripts/setup-supervisor.shExample :This assumes that you are in the root folder of the backend repository.
git checkout release33
docker build -f docker/develop/develop.dockerfile -t cobbler-dev:release33 .
docker run -it --rm --name cobbler-dev -p 80:80 -p 443:443 -v ${PWD}:/code cobbler-dev:release33
make clean
./docker/develop/scripts/setup-supervisor.shWhen you are running Angular applications this is a common issue. Please check the following things:
/etc/apache2/vhosts.d/cobbler.confproxy.conf.json for the correct URL.We will only be guiding you as a developer very limited here as this is a very environment specific setting. Most of the time will be "Here is a random Stackoverflow link, please read and debug yourself.".