openfrontier / docker-gerrit

Build a Docker image with the Gerrit code review system
Apache License 2.0
197 stars 116 forks source link

Plugin installation via GERRIT_INIT_ARGS fails on first time #107

Closed ju-la-berger closed 6 years ago

ju-la-berger commented 6 years ago

When you start Gerrit for the very first time (empty Gerrit site directory) and use some config like

    ...
    environment:
      - "GERRIT_INIT_ARGS=--install-plugin=delete-project"
    ...

to install some plugin, the container exits almost immediately:

gerrit_1           | First time initialize gerrit...
gerrit_1           | [2018-11-02 10:07:01,842] [main] INFO  com.google.gerrit.server.config.GerritServerConfigProvider : No /var/gerrit/review_site/etc/gerrit.config; assuming defaults
gerrit_1           | cp: can't create '/var/gerrit/review_site/plugins/delete-project.jar': No such file or directory
gerrit_1           | ls: /var/gerrit/review_site/git: No such file or directory
thinkernel commented 6 years ago

Hi @ju-la-berger Where's your volume mounted from?

ju-la-berger commented 6 years ago

Hi @thinkernel! I just realized that it is probably my own mistake. I will test again and let you know. Sorry. Best regards!

ju-la-berger commented 6 years ago

@thinkernel This was my mistake. Everthing is fine. Sorry.

thinkernel commented 6 years ago

No problem. Thanks for using this image.

ShonInDim commented 5 years ago

Hi, @ju-la-berger ! Could you clarify about your issue, it was wright permisson error or something similar ?