Skip to content

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

@StefH

Description

@StefH

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions