5d79086350
We have a wrapper script now that works on the gerrit servers. Run it after we run the gitea repo creation. Remove the -it since this is not an interactive run. Add net=host so that localhost maps. And set the server to localhost. Don't run manage-projects in gate jobs for run-review yet, because we don't have a functioning enough gerrit. We can follow up with that. Change-Id: I8c0eb5d7973815ae21d4d5bc1be8d4bdfe56d7fc
26 lines
1.1 KiB
Django/Jinja
26 lines
1.1 KiB
Django/Jinja
#!/bin/bash
|
|
# Copyright 2020 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
exec docker run --rm --net=host -u root \
|
|
-v{{ gerrit_project_config_base }}:/opt/project-config \
|
|
-v{{ gerrit_project_config_base }}/gerrit/projects.yaml:/home/gerrit2/projects.yaml \
|
|
-v/opt/lib/git:/opt/lib/git \
|
|
-v/opt/lib/jeepyb:/opt/lib/jeepyb \
|
|
-v/home/gerrit2/review_site/etc/ssh_project_rsa_key:/home/gerrit2/review_site/etc/ssh_project_rsa_key \
|
|
-v/home/gerrit2/projects.ini:/home/gerrit2/projects.ini \
|
|
-v/var/log:/var/log \
|
|
{{ gerrit_container_image }} track-upstream -v -l /var/log/track_upstream.log
|