| ... | ... | @@ -11,10 +11,14 @@ 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
|
| ... | ... | |