Skip to content
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

When using generateDocbook: the docker image tries to download extra dependencies, which fails because I use a local proxy server #63

Open
StefH opened this issue Oct 24, 2024 · 0 comments

Comments

@StefH
Copy link

StefH commented Oct 24, 2024

The command:

C:\SoftwareArchitecture> docker run --rm --entrypoint /bin/bash -it -v ${PWD}:/project doctoolchain/doctoolchain-azure-devops-pipeline:v3.4.1 -c "doctoolchain . generateDocbook -PmainConfigFile=config/docToolchainConfig.groovy --warning-mode=none --no-daemon && exit"

The error:

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/8.1.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

> Configure project :
>>>>>>>>> fix grolifant
>>>>>>>>> fix okhttp-digest

> Task :generateDocbook FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateDocbook'.
> Could not resolve all files for configuration ':detachedConfiguration2'.
   > Could not resolve org.asciidoctor:asciidoctorj:2.5.7.
     Required by:
         project :
      > Could not resolve org.asciidoctor:asciidoctorj:2.5.7.
         > Could not get resource 'https://plugins.gradle.org/m2/org/asciidoctor/asciidoctorj/2.5.7/asciidoctorj-2.5.7.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/org/asciidoctor/asciidoctorj/2.5.7/asciidoctorj-2.5.7.pom'.
               > plugins.gradle.org
      > Could not resolve org.asciidoctor:asciidoctorj:2.5.7.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctorj/2.5.7/asciidoctorj-2.5.7.pom'.
            > Could not GET 'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctorj/2.5.7/asciidoctorj-2.5.7.pom'.
               > repo.maven.apache.org: Name does not resolve
      > Could not resolve org.asciidoctor:asciidoctorj:2.5.7.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctorj/2.5.7/asciidoctorj-2.5.7.pom'.
            > Could not GET 'https://repo.maven.apache.org/maven2/org/asciidoctor/asciidoctorj/2.5.7/asciidoctorj-2.5.7.pom'.
               > repo.maven.apache.org

Note that the local proxy server (https://github.com/genotrance/px) is running on localhost:3128.

And I tried passing the proxy server as environment variables, but that does not solve it.
--env http_proxy="host.docker.internal:3128" --env https_proxy="host.docker.internal:3128"

Is there a way to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant