Opengrok for very large project Google Repo based #4301
Replies: 12 comments
-
Can I request you to help review my configuration files? Request your helps and inputs on this. Thanks |
Beta Was this translation helpful? Give feedback.
-
The per project settings in the read-only configuration look sane however in order to use with the official Docker image it is necessary to use the |
Beta Was this translation helpful? Give feedback.
-
As for using |
Beta Was this translation helpful? Give feedback.
-
The The initial section: commands:
repo:
# override repository command
command: /usr/local/bin/repo
sync: ['repo', 'sync','-cf']
# override incoming check with custom command (/my/custom/git is not called for incoming check)
# incoming: ['/bin/echo', 'Syncing the Repo!']
incoming: ['repo', 'sync', '-n']
incoming_check: true will not work as intended - the commands:
repo: /usr/local/bin/repo |
Beta Was this translation helpful? Give feedback.
-
If I use only the repo path command, than where do we define the sync command, incoming command and incoming_check command. Do you have a sample/example yml file which covers all the commands? I am bit confused on the format of the yml file. Is it possible to provide the command to execute the python script to generate correct yml file. I am unable to get all the arguments required to generate the mirror.yml. Can you suggest an example complete command as reference to generate mirrror.yml. also would appreciate if you can provide the example complete command to generate read only configuration file. |
Beta Was this translation helpful? Give feedback.
-
I am already using -R option under INDEXER_OPT="-R /opengrok/etc/readonly.xml" |
Beta Was this translation helpful? Give feedback.
-
Also can you help suggest the mirror yml file to support the below commands for the large google repo? repo init repo sync --current-branch --quiet --force-sync |
Beta Was this translation helpful? Give feedback.
-
That's will not work as intended. The path to the read-only configuration has to be supplied via the |
Beta Was this translation helpful? Give feedback.
-
The opengrok/tools/src/main/python/opengrok_tools/scm/repo.py Lines 39 to 43 in 7b938e4 The |
Beta Was this translation helpful? Give feedback.
-
That's not possible currently. The mirror configuration for the SCM commands allows to specify the path to a binary only. That's useful for cases where the command is in non standard location. If you need higher level of customization then you have to perform the synchronization by other means.
Such capability does not exist and that's a good thing I'd say. The YAML syntax should be editable by hand and the |
Beta Was this translation helpful? Give feedback.
-
We are extending the usage of the main docker file and creating our own docker file to support extra configuration for large code base. In this case, I think we still need -R readonly.xml file under INDEX_OPT. One observation is when I use the READONLY_CONFIG_FILE="/opengrok/etc/readonly.xml", it keeps waiting for tomcat. synchronization period = 6 minutes Following are end logs, Web page at the mapped local port does not reflect the project and its index, But if I add the readconfig under INDEX_OPT, I can view the project will all index generated. |
Beta Was this translation helpful? Give feedback.
-
Hi @shilpakangya , Did you have a solution for that? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am facing problem to create the Opengrok workspace from a very large project with multiple sub-repositories, which uses google repo tool. For this, I am unable to generate the mirror.yml tool using the opengrok-mirror tool since I am not aware of -H HEADER option, so I have manually created the mirror.yml. Even I have created readonly configuration for customize config. Can someone suggest to the example mirror.yml and readonly.xml file(as input config for indexer)? I am attaching these file for review. I am unable to generate the index even for the first time and I dont see the dropdown project on webapp. Can you pease helpUsing these file along with this command
I have attached the logs and the configuration used.
cfg.zip
Beta Was this translation helpful? Give feedback.
All reactions