Skip to content

Configuration files Help #3220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rmshnair opened this issue Sep 11, 2020 · 9 comments
Closed

Configuration files Help #3220

rmshnair opened this issue Sep 11, 2020 · 9 comments
Labels

Comments

@rmshnair
Copy link

I am trying to setup the environment for my Java and Javascript projects. trying to find a help with configuration files that helps to setup my GIT and SVN repos synced with open grok. There are several configuration files and slightly confused with their formats, and locations, especially with docker container environment.

sync config
fresh_config.xml
ctags.config
reso sync configuration.yml

any help is much appreciated

@vladak
Copy link
Member

vladak commented Sep 11, 2020

For repository synchronization config using the opengrok-mirror script see https://github.com/oracle/opengrok/wiki/Repository-synchronization

The execution of the opengrok-mirror script should go into

opengrok/docker/start.sh

Lines 41 to 44 in 112419e

while true; do
sleep `expr 60 \* $REINDEX`
/scripts/index.sh
done

before the execution of index.sh. You will need to install the Python scripts first.

Using the sync script in the Docker container is certainly possible.

It would be nice if the opengrok-sync and opengrok-mirror were running in the Docker container, created #3221. This will eventually replace the cycle with a execution of opengrok-sync.

@rmshnair
Copy link
Author

rmshnair commented Sep 11, 2020

Thanks, i see a YAML configuration in [https://github.com/oracle/opengrok/wiki/Repository-synchronization], it looks like a per project configuration, but different format, what should be the filename for this YAML and where do i put in docker container?

also, how do i configure options like username, password, quite for SVN update command as part of synchronization?

@vladak
Copy link
Member

vladak commented Sep 11, 2020

The config file can be placed anywhere in the Docker image I think. It does not matter what is the name of the config file, just pass it to the opengrok-mirror script with --config option.

@vladak
Copy link
Member

vladak commented Sep 11, 2020

The username/password for Subversion repositories is set via environment variables:

  • OPENGROK_SUBVERSION_USERNAME
  • OPENGROK_SUBVERSION_PASSWORD

Ideally they should be per project properties - #1946

@vladak
Copy link
Member

vladak commented Sep 11, 2020

Actually, the opengrok-mirror is already part of the Docker image and runs before every reindex. It does not use any configuration, it just retrieves the list of repositories from the web application.

@vladak
Copy link
Member

vladak commented Sep 11, 2020

The limitation of performing repository synchronization via opengrok-mirror is that it does not accept username/password. Perhaps this can be part of the Subversion configuration ?

@vladak
Copy link
Member

vladak commented Sep 11, 2020

In general I'd say that if you need mirroring configuration, then this is outside of intended use scope for the official Docker image. Better run the mirroring externally and disable it via the NOMIRROR environment variable.

@rmshnair
Copy link
Author

rmshnair commented Oct 11, 2020

Thanks. i was able to configure. however i see a problem. i have a svn repo with multiple trunks at different level. i checked out each trunk separately, however organized as same folder structure inside a single opengrok project. my observation is, indexer ran and able to figure out all the trunk that are with in 3 levels deep from the project folder. all other are not found and added to configuration.xml. is this 3 levels deep is a limitation? if so, can we overcome this?

@vladak
Copy link
Member

vladak commented Oct 13, 2020

See the --depth indexer option.

@vladak vladak closed this as completed Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants