Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: testing_support/gerrit-init.sh

Issue 27752003: Configure HOME for the gerrit process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 set -e 6 set -e
7 7
8 http_port=8080 8 http_port=8080
9 ssh_port=29418 9 ssh_port=29418
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 type = DEVELOPMENT_BECOME_ANY_ACCOUNT 150 type = DEVELOPMENT_BECOME_ANY_ACCOUNT
151 gitBasicAuth = true 151 gitBasicAuth = true
152 [gerrit] 152 [gerrit]
153 canonicalWebUrl = http://$(hostname):${http_port}/ 153 canonicalWebUrl = http://$(hostname):${http_port}/
154 [httpd] 154 [httpd]
155 listenUrl = http://*:${http_port}/ 155 listenUrl = http://*:${http_port}/
156 [sshd] 156 [sshd]
157 listenAddress = *:${ssh_port} 157 listenAddress = *:${ssh_port}
158 [sendemail] 158 [sendemail]
159 enable = false 159 enable = false
160 [container]
161 javaOptions = -Duser.home=${rundir}/tmp
160 EOF 162 EOF
161 163
162 # Initialize the gerrit instance. 164 # Initialize the gerrit instance.
163 java -jar "$gerrit_exe" init --no-auto-start --batch -d "${rundir}" 165 java -jar "$gerrit_exe" init --no-auto-start --batch -d "${rundir}"
164 166
165 # Create SSH key pair for the first user. 167 # Create SSH key pair for the first user.
166 mkdir -p "${rundir}/tmp" 168 mkdir -p "${rundir}/tmp"
167 ssh-keygen -t rsa -q -f "${rundir}/tmp/id_rsa" -N "" 169 ssh-keygen -t rsa -q -f "${rundir}/tmp/id_rsa" -N ""
168 ssh_public_key="$(cat ${rundir}/tmp/id_rsa.pub)" 170 ssh_public_key="$(cat ${rundir}/tmp/id_rsa.pub)"
169 171
(...skipping 28 matching lines...) Expand all
198 To use SSH API: 200 To use SSH API:
199 ssh ${username}@localhost -p ${ssh_port} -i ${rundir}/tmp/id_rsa gerrit 201 ssh ${username}@localhost -p ${ssh_port} -i ${rundir}/tmp/id_rsa gerrit
200 202
201 To enable 'git push' without a password prompt: 203 To enable 'git push' without a password prompt:
202 git config credential.helper 'store --file=${rundir}/tmp/.git-credentials' 204 git config credential.helper 'store --file=${rundir}/tmp/.git-credentials'
203 205
204 To stop the server: 206 To stop the server:
205 ${rundir}/bin/gerrit.sh stop 207 ${rundir}/bin/gerrit.sh stop
206 208
207 EOF 209 EOF
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698