Skip to content

Configure the Registry import command to log to /var/log/gitlab/registry directory by default

What

Configure the Registry import command to log to /var/log/gitlab/registry directory by default.

We should not be writing log files to current directory. All GitLab services should log into /var/log/gitlab/{service_name} directory. The logs should also be rotated.


The following discussion from !8817 should be addressed:

  • @Alexand started a discussion: (+4 comments)

    @hswimelar could you review this change from a registry perspective?

    Basically, I want to communicate that all the logic that is called on all the registry migrate and the registry garbage_collection commands will now be run as if they were triggered from /var/opt/gitlab/registry, even if the user was somewhere else when they manually called those.

    My expectation is that the registry does not really care what's the current directory from which the commands were called.

    Could you let me know if this assumption is true or whether the current directory is actually relevant to the registry tasks (from the registry binary perspective)?

Dependency

We need a way to configure the registry to log into a certain path.

[Issue to be created]

cc @hswimelar