|
|
|
If you fork the CEPCSW and then create a merge request, the CI/CD will not start due to missing of gitlab runner. So you need to register the runner first.
|
|
|
|
|
|
|
|
In GitLab web portal:
|
|
|
|
|
|
|
|
* First, you need to go to "settings" -> "CI/CD" -> "Runners".
|
|
|
|
* Click "New project runner".
|
|
|
|
* In tags, fill "centos7". Then click "create".
|
|
|
|
* Save the token.
|
|
|
|
|
|
|
|
In IHEP cluster:
|
|
|
|
|
|
|
|
* Choose a path for the runner with enough disk space. For example '/scratchfs'.
|
|
|
|
* Create a directory named 'ihep-gitlab-runner' and cd to it.
|
|
|
|
* Copy the script '~lint/setup-gitlab-runner.sh' to current directoy.
|
|
|
|
* Edit this script
|
|
|
|
* Change RUNNER_TOP_DIR to the current directory.
|
|
|
|
* Change APPTAINER_BINDPATH and add the necessary mount path, such as '/cvmfs,/afs,/scratchfs'
|
|
|
|
* Register with token
|
|
|
|
* `bash setup-gitlab-runner.sh new glrt-XXXXXXXXXXXXXXXX`
|
|
|
|
* Start the instance
|
|
|
|
If you fork the CEPCSW and then create a merge request, the CI/CD will not start due to missing of gitlab runner. So you need to register the runner first.
|
|
|
|
|
|
|
|
In GitLab web portal:
|
|
|
|
|
|
|
|
* First, you need to go to "settings" -> "CI/CD" -> "Runners".
|
|
|
|
* Click "New project runner".
|
|
|
|
* In tags, fill "centos7". Then click "create".
|
|
|
|
* Save the token.
|
|
|
|
|
|
|
|
In IHEP cluster:
|
|
|
|
|
|
|
|
* Choose a path for the runner with enough disk space. For example '/scratchfs'.
|
|
|
|
* Create a directory named 'ihep-gitlab-runner' and cd to it.
|
|
|
|
* Use `realpath` to get the real directory.
|
|
|
|
* Some user paths are soft links, which will cause apptainer can't access the storage.
|
|
|
|
* Copy the script '~lint/setup-gitlab-runner.sh' to current directoy.
|
|
|
|
* Edit this script
|
|
|
|
* Change RUNNER_TOP_DIR to the current directory.
|
|
|
|
* Change APPTAINER_BINDPATH and add the necessary mount path, such as '/cvmfs,/afs,/scratchfs'
|
|
|
|
* Create a soft link `$HOME/.gitlab-runner` to the previous path.
|
|
|
|
* The reason is that AFS will be locked when the keberos token is expired.
|
|
|
|
* Register with token
|
|
|
|
* `bash setup-gitlab-runner.sh new glrt-XXXXXXXXXXXXXXXX`
|
|
|
|
* Start the instance
|
|
|
|
* `bash setup-gitlab-runner.sh start` |
|
|
\ No newline at end of file |