docToolchain / docToolchain/docker-image

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

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
4
Forks
15
PR merge metrics
No merged PRs in 30d

Description

The command:
``` powershell
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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.