Переглянути джерело

Install latest git-review from PyPI in quickstart

With the removal[*] of refs/publish in Gerrit 3.0.0, git-review
1.27.1 or later is needed to avoid attempting a push there and
ultimately failing. The git-review package in Ubuntu 18.04 LTS is
too old (1.26.0), so use latest from PyPI instead.

Adjust the quick-start document to install git-review with pip, and
on Debian/Ubuntu suggest including the python3-pip distro package
since it's split out separate from the interpreter packages.

[*] https://gerrit-review.googlesource.com/c/gerrit/+/192494

Change-Id: I247fb761667a99cf9f25478b49c5a1fe5d11a6cf
tags/3.9.0
Jeremy Stanley 5 місяці тому
джерело
коміт
5bf838db68

+ 1
- 1
doc/source/admin/examples/docker-compose.yaml Переглянути файл

@@ -4,7 +4,7 @@ version: '2'
4 4
 
5 5
 services:
6 6
   gerrit:
7
-    image: gerritcodereview/gerrit:2.16.8
7
+    image: gerritcodereview/gerrit
8 8
     ports:
9 9
       - "8080:8080"
10 10
       - "29418:29418"

+ 4
- 3
doc/source/admin/quick-start.rst Переглянути файл

@@ -33,19 +33,20 @@ Before you start, ensure that some needed packages are installed.
33 33
 
34 34
    # Red Hat / Fedora / CentOS:
35 35
 
36
-   sudo yum install docker docker-compose git git-review
36
+   sudo yum install docker docker-compose git
37 37
 
38 38
    # OpenSuse:
39 39
 
40
-   sudo zypper install docker docker-compose git git-review
40
+   sudo zypper install docker docker-compose git
41 41
 
42 42
    # Ubuntu / Debian:
43 43
 
44
-   sudo apt-get install docker-compose git git-review
44
+   sudo apt-get install docker-compose git python3-pip
45 45
 
46 46
    # Start and Enable the docker service on Fedora / CentOS
47 47
    # Red Hat / OpenSuse:
48 48
 
49
+   sudo python3 -m pip install git-review
49 50
    sudo systemctl enable docker.service
50 51
    sudo systemctl start docker.service
51 52
 

+ 4
- 2
playbooks/quick-start/run.yaml Переглянути файл

@@ -7,13 +7,15 @@
7 7
       use_upstream_docker: false
8 8
     - use-buildset-registry
9 9
   tasks:
10
-    - name: Install docker-compose and git-review
10
+    - name: Install docker-compose
11 11
       package:
12 12
         name:
13 13
           - docker-compose
14
-          - git-review
15 14
         state: present
16 15
       become: true
16
+    - name: Install git-review
17
+      command: python3 -m pip install git-review
18
+      become: true
17 19
     - name: Create workspace directory
18 20
       file:
19 21
         state: directory

Завантаження…
Відмінити
Зберегти