| FROM gerritcodereview/gerrit:3.8.2 |
| |
| USER root |
| |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-oauth-bazel-master-stable-3.8/lastSuccessfulBuild/artifact/bazel-bin/plugins/oauth/oauth.jar /var/gerrit/plugins/gerrit-oauth-provider.jar |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-serviceuser-bazel-master-stable-3.8/lastSuccessfulBuild/artifact/bazel-bin/plugins/serviceuser/serviceuser.jar /var/gerrit/plugins/serviceuser.jar |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-lfs-bazel-master-stable-3.8/lastSuccessfulBuild/artifact/bazel-bin/plugins/lfs/lfs.jar /var/gerrit/plugins/lfs.jar |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-ref-protection-bazel-master-stable-3.8/lastSuccessfulBuild/artifact/bazel-bin/plugins/ref-protection/ref-protection.jar /var/gerrit/plugins/ref-protection.jar |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-rename-project-bazel-master-stable-3.6/lastSuccessfulBuild/artifact/bazel-bin/plugins/rename-project/rename-project.jar /var/gerrit/plugins/rename-project.jar |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-admin-console-bazel-master-stable-3.8/lastSuccessfulBuild/artifact/bazel-bin/plugins/admin-console/admin-console.jar /var/gerrit/plugins/admin-console.jar |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-github-mvn-stable-3.8/lastSuccessfulBuild/artifact/github-plugin/target/github-plugin-3.8.0.jar /var/gerrit/plugins/github.jar |
| ADD https://gerrit-ci.gerritforge.com/job/plugin-github-mvn-stable-3.8/lastSuccessfulBuild/artifact/github-oauth/target/github-oauth-3.8.0.jar /var/gerrit/lib/github-oauth.jar |
| |
| RUN chown gerrit /var/gerrit/plugins/* /var/gerrit/lib/* |
| |
| USER gerrit |
| CMD /var/gerrit/bin/gerrit.sh run |