-
Notifications
You must be signed in to change notification settings - Fork 1.3k
How to change the docker command in auto-indexing? #60849
Comments
Via @keynmol in Slack:
I think that should cover your SSL related arguments. Could you clarify if you really need to modify the full set of Docker arguments such as adding
@zhangype please let us know if that answers the questions you had |
I add the configuration but still couldn't connect to private maven repository. I have modified the /etc/hosts file in the executor and dind containers, and tested that the executor and dind containers can connect to the maven repository. But the auto-indexing still fails to connect to the private maven repository. |
Hey @zhangype, it seems you have an old version of scip-java running - 0.8.13 vs latest 0.9.9. In particular, I believe you're affected by a bug in handling of trailing arguments, which was fixed in 0.9.7 (see issue sourcegraph/scip-java#650) I recommend updating the java indexer version in site configuration, by adding something like "codeIntelAutoIndexing.indexerMap": {
"java": "sourcegraph/scip-java:0.9.9"
}, We also have Please try changing the version and let me know if it helps. |
I used scip-java 0.9.9, but still couldn't connect to the private maven repository. I think it's possible that the /etc/hosts file isn't working. But you can see my previous reply, I have tested that the /etc/hosts file is valid. @keynmol |
Hey @varungandhi-src and @keynmol. By the way, I deployed sourcegraph-executor this way. The version of Sourcegraph I'm currently using is 5.0.0. |
I'm self-hosted customer. I want to change the dind host configuration and maven settings. How can I change the docker command in auto-indexing? A sample command is as follows.
docker run --add-host='maven.oa.com:IP' -v $(pwd):/sources -v /data/app/devtools/maven/conf/settings.xml:/settings.xml --env JVM_VERSION=8 sourcegraph/scip-java:0.9.5 scip-java index -- --batch-mode clean verify -Dmaven.test.skip=true -s /settings.xml -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.resolver.transport=wagon
The text was updated successfully, but these errors were encountered: