#1520 docker: adding default.ini file for copr-distgit-client
Merged 3 years ago by praiskup. Opened 3 years ago by schlupov.
copr/ schlupov/copr add_distgit_client_config  into  master

@@ -0,0 +1,4 @@ 

+ [distgit-httpd]

+ clone_hostnames = distgit-httpd

+ lookaside_location = http://distgit-httpd

+ lookaside_uri_pattern = repo/pkgs/{namespace[1]}/{namespace[0]}/{name}/{filename}/{hash}/{filename}

We need the distgit-httpd section in the builder container.

I haven't tried but AFAIK the config is installed by default and it is just missing the last section

[distgit-httpd]
clone_hostnames = distgit-httpd
lookaside_location = http://distgit-httpd
lookaside_uri_pattern = repo/pkgs/{namespace[1]}/{namespace[0]}/{name}/{filename}/{hash}/{filename}

If the dist-git-client reads all configs from /etc/copr-distgit-client/, then I would just add /etc/copr-distgit-client/docker.ini with only the last section. If it doesn't work that way, it would be worth it to improve the config reader, so we don't have to duplicate the whole default config here.

rebased onto 5cc0030e0265c9e81f66696e2296e338e577bff2

3 years ago

You're right, it reads all configs from /etc/copr-distgit-client/ so I made new ini file with distgit-httpd section.

rebased onto 15593a8

3 years ago

Merging. (no review here)

Pull-Request has been merged by praiskup

3 years ago