Skip to content

Commit

Permalink
docker: create /var/lock/copr-dist-git directory
Browse files Browse the repository at this point in the history
Otherwise the import command:

    copr-distgit-process-import --build-id 7252586 --worker-id import_worker:7252586

Fails with the following error:

    FileNotFoundError: [Errno 2] No such file or directory: '/var/lock/copr-dist-git/_@_var_@_lib_@_dist-git_@_cache_@_lookaside_@_pkgs_@_frostyx_@_test-devel_@_copr-cli.lock'
  • Loading branch information
FrostyX authored and praiskup committed Nov 22, 2024
1 parent 7361c52 commit ae9da26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/distgit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ RUN sed -i 's/Listen 80/Listen 5001/' /etc/httpd/conf/httpd.conf
RUN mkdir /tmp/copr-dist-git
RUN chown copr-dist-git:packager /tmp/copr-dist-git

RUN mkdir /var/lock/copr-dist-git/
RUN chown copr-dist-git:copr-dist-git /var/lock/copr-dist-git/

# copy filesystem setup and setup ownership and permissions
COPY files/ /
RUN chmod 644 /etc/copr/copr-dist-git.conf
Expand Down

0 comments on commit ae9da26

Please sign in to comment.