gitlab-runner with a docker-executor

As it said here, you have to add network_mode = "host" to your /etc/gitlab-runner/config.toml file and then restart the all container with a docker restart to get your /etc/hosts used as a DNS entry of your gitlab-runner.…

Une PIC parmis d'autres

Bonjour à tous, et bonne nouvelle année 2021. Un exemple de Plateforme d'intégration Continue mis en place avec le concours de FMJConsulting dans une organisation proche du ministère de l'économie et des Finances. Elle est déployée à la demande en mode GitOps sur un Cloud Openstack et ça fonctionne très…

insert a line in a file and backup it

Need to quicly insert a line ?sed -i.backup -e's/#run_as_user.*/run_as_user=\"nexus\"/' /opt/nexus/bin/nexus.rc Here an example for the nexus.rc file. Even if I find that a bit redundant with the systemd nexus.service file which said - again- User=…

Git credential Store

According to https://cinhtau.net/2018/02/06/configure-git-credentials/git config --global credential.helper 'store --file ~/.my-credentials' CopyBash The authentication is cached for 900 seconds (15 minutes), see also git Credential Cache.Now I have to fill the credential storage with my gitlab access token.  Using git credentials command to…

Problème de permission rsyslog sur un fichier Nexus

Besoin:"Afficher le contenu du fichier /var/lib/nexus/log/nexus.log de la machine localnexus sur l'instance Graylog(c) logs.dgfip"Résultat:Graylog affiche le message : file '/var/lib/nexus/log/nexus.log': open error: Permission denied [v8.24.0-41.el7_7.2 try http://www.rsyslog.com/…

Your Nexus behind a reverse proxy on CentOS

When you install Nexus behind security rules which only permit traffic on port #80 or #443 you may be interested into using a reverse proxy as httpd. Here the steps ...First choose a domain name, then install httpd, finally configure a virtualhost ¹ and check the selinux rulesecho "<my_ip&…