Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
64b5f876
Commit
64b5f876
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[doc] More tips for installing the linux CI [ci skip]
parent
c55f8191
No related branches found
No related tags found
No related merge requests found
Pipeline
#27521
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/linux.rst
+44
-25
44 additions, 25 deletions
doc/linux.rst
with
44 additions
and
25 deletions
doc/linux.rst
+
44
−
25
View file @
64b5f876
...
@@ -142,35 +142,54 @@ the values of ``<internal.ipv4.address>`` and ``<token>`` on the template below)
...
@@ -142,35 +142,54 @@ the values of ``<internal.ipv4.address>`` and ``<token>`` on the template below)
$ chown gitlab-runner:gitlab-runner /scratch/cache
$ chown gitlab-runner:gitlab-runner /scratch/cache
.. note::
Access to Idiap's docker registry
=================================
If you want the Idiap docker registry (docker.idiap.ch) to be accessible
If you want the Idiap docker registry (docker.idiap.ch) to be accessible
from
from
the shell executors, you must also ensure Idiap registry certificates
the shell executors, you must also ensure Idiap registry certificates
are
are
available on the host. You may copy the contents of ``docker.idiap.ch``
available on the host. You may copy the contents of ``docker.idiap.ch``
directory in this documentation set for that purpose, to the directory
directory in this documentation set for that purpose, to the directory
``/etc/docker/certs.d``. Then, ensure to use something like:
``/etc/docker/certs.d``. Then, ensure to use something like:
``docker login -u
``docker login -u
gitlab-ci-token -p $CI_JOB_TOKEN docker.idiap.ch`` on the
gitlab-ci-token -p $CI_JOB_TOKEN docker.idiap.ch`` on the
(global)
(global)
``before_script`` phase in jobs requiring access to the registry.
``before_script`` phase in jobs requiring access to the registry.
.. note::
Repository cloning from CI jobs
===============================
If you'd like to allow the (shell-based) runner to clone repositories other
than the one being built, you need to ensure the following is configured at
``~/.ssh/config`` of the user running the ``gitlab-runner`` process
(typically ``gitlab-runner``):
.. code-block:: text
Host gitlab.idiap.ch
ForwardX11 no
ForwardX11Trusted no
ForwardAgent yes
StrictHostKeyChecking no
ControlMaster auto
ControlPath /tmp/%r@%h-%p
ControlPersist 600
Compression yes
Make sure to use an "https" git-clone strategy in your recipes.
Git
===
The version of git (2.11) shipped with Debian Stretch (9.x) is broken. The
git-clean command does not honour the ``--exclude`` passed via the
command-line. I advise you install the most recent version from debian
backports by enabling this repository or configuring it with instructions from
https://backports.debian.org. To install the newest git version, after an
``apt update``, just run the following command as root:
.. code-block:: sh
If you'd like to allow the (shell-based) runner to clone repositories other
$ apt-get -t stretch-backports install "git"
than the one being built, you need to ensure the following is configured at
``~/.ssh/config`` of the user running the ``gitlab-runner`` process
(typically ``gitlab-runner``):
.. code-block:: text
Host gitlab.idiap.ch
ForwardX11 no
ForwardX11Trusted no
ForwardAgent yes
StrictHostKeyChecking no
ControlMaster auto
ControlPath /tmp/%r@%h-%p
ControlPersist 600
Compression yes
Crontabs
Crontabs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment