6
votes
Accepted
yum update shows three exclamation marks
It means the setting for checking the GPG signature is off and no check is being made to verify downloaded package's authenticity.
For example in the Gitlab repo file located in:
/etc/yum.repos.d/...
5
votes
How to avoid using 'ssh-add ~/.ssh/id_rsa' for every push to a github repo?
below is based on another answer:
In order to not have to refill in your password even after a restart, add the following to your ssh configuration file (which is commonly located at ~/.ssh/config, or ...
4
votes
Accepted
Selinux causing sshd to fail when using AuthorizedKeysCommand
You can do this:
# generate the policy .te file
echo "type=AVC msg=audit(1559126095.648:64173782): avc: denied { name_connect } for pid=13839 comm="gitlab-shell-au" dest=8081 scontext=system_u:...
4
votes
Is there a command line tool for managing packages written by me?
I would suggest taking a look at fpm - effing package manager is the name or the docs here. You can use fpm to convert anything to a package, such as RPM, DEB, etc. Pretty solid tutorial here - How To ...
slm♦
- 380k
3
votes
Accepted
Does a load of 41.20 (!?) suggest a hardware failure?
A load of 42 does not suggest hardware problems. It suggests many runaway programs.
In general, load is the average number of programs in state "R" or running. You have two of those.
But ...
2
votes
can't install services in Docker
Your installation scripts seem to assume "runlevels", so they might not be compatible with the service manager that comes with modern debian by default (systemd).
Furthermore, your scripting ...
2
votes
Can't use LFTP with SFTP but SFTP clients allow connections
In you current command, lftp is not using sftp, which would be FTP over the SSH protocol, but ftps which is FTP over SSL.
For lftp to work as an sftp client, you would need to add sftp:// to the host ...
2
votes
SSH fails to use the given private key on docker and GitLab CI
On your ubuntu you're presumably connected as a local tty whereas the GitLab CI docker has no tty exactly as the error implies.
When you use the command
docker-compose exec -T
This disables the ...
2
votes
How do I move things from my Overleaf git repository to my Gitlab git repository?
the repo with the biggest amount of commits should be the one that you pull from before attempting any change.
git pull upstream master
after that make sure your gitlab repo is synced with upstream.
...
2
votes
Accepted
GitLab with relative URL on Apache (CentOS web server)
This solution is working on a CentOS 7 web server with Apache 2.4.6 and GitLab 11.9.4 installed by means of GitLab Omnibus package. The server is running on http but it should be easily transferrable ...
2
votes
Accepted
GitLab Runner: no basic auth credentials even though DOCKER_AUTH_CONFIG is set
Instead of setting the DOCKER_AUTH_CONFIG variable in the gitlab runner config it needs to be set for the docker daemon:
/etc/docker/config.json
{
"auths": {
"my.private.registry": {
...
2
votes
Accepted
Does the GitLab runner configuration file support comments?
GitLab uses TOML (Tom's Obvious, Minimal Language). The TOML format supports multiple forms for comments.
# This is a full-line comment
key = "value" # This is a comment at the end of a line
another ...
1
vote
GitLab CI/CD: Create tar.gz with content inside current working dir and save tar.gz inside current working dir: tar: .: file changed as we read it
If using the tar arg f it must be followed by the name of the archive, so you need
tar -czf archive1.tar.gz --exclude=archive1.tar.gz .
To avoid the warning, simply
touch archive1.tar.gz
beforehand ...
1
vote
Clearing log files located in var/log (RHEL)
Look at logrotate.conf manual pages (a.k.a. man pages). You can use logrotate which is part of the base RHEL install.
Here is a tutorial with examples.
1
vote
Accepted
lost variable from bash in yaml gitlab ci
As mentioned in my answer to your previous question, the here-document needs to be quoted. If it is not, the expansion of the variables (and any other expansion) will be carried out by the invoking ...
1
vote
Push etckeeper created repository to remote Gitlab server, advices welcomed
I think I found a solution. As I mentioned branches earlier, I found that, this is the easiest way to achieve what I want.
So what I've done in few simple steps:
I have created SSH RSA key pairs, to ...
1
vote
why pipeline run only first gitlab-runner?
This is well-known behaviour on ssh services, but as your tools implementation is not described in detail I have no idea whether this is a similar issue.
With ssh, the problem is that the local ...
1
vote
Accepted
Using cURL, jq, and declaration and for loop condition, I tried to download multiple files from a GitLab private repo, but it downloaded only one
The first loop overwrites the value of the variable paths in each iteration. Since you later expect this to be an array, make sure it is created properly:
paths=()
for urlencode in "${context_dirs[@]...
1
vote
How do I get the git branch name with sed
Print the part following origin/releases/ that contains more than one non-space characters:
echo 'origin/releases/2400ACB 294125569b2dc926158b64115f1467f916c9 WIP' | sed -n 's/origin\/releases\/\([^ ]...
1
vote
yum update shows three exclamation marks
My environment is Centos 7.6 and I have the same situation.
I checked the output of yum repolist -v.
And I found that the Repo-exire of gitlab_gitlab-ce/x86_64 and gitlab_gitlab-ce-source is 300 ...
1
vote
Accepted
Stripping a git repo of all committed files that should have been ignored
If you don’t mind deleting all the ignored files in the working directory, the following will stage all committed-but-ignored files for deletion:
find . -print0 | git check-ignore -z --stdin --no-...
1
vote
Accepted
How to rsync folder using gitlab-ci
The syntax for remote source/destination in rsync is [<user>@]<host>:[path] So minimally this must be example.com: ie the : is important.
Your remote does not have the : so rsync will be ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gitlab × 76git × 13
ssh × 10
bash × 7
debian × 6
ubuntu × 6
docker × 6
github × 6
nginx × 5
centos × 4
permissions × 4
linux × 3
shell-script × 3
yum × 3
sshd × 3
cron × 2
logs × 2
apache-httpd × 2
repository × 2
ssl × 2
webserver × 2
aws × 2
container × 2
kubernetes × 2
docker-compose × 2