camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.11k stars 1.55k forks source link

Can't build docker image for CE (missing NEXUS_PASS and NEXUS_USER) #3269

Closed ThorstenEngel closed 1 year ago

ThorstenEngel commented 1 year ago

Dear all,

the mirror in settings.xml (corresponding change on 2 Feb 2023 on camunda/docker-camunda-bpm-platform.git) needs NEXUS_PASS and NEXUS_USER. This obviously works nicely in your CI/CD, but not for an external CE user, who hasn't these credentials.

Of course, changing "settings.xml" works, but shouldn't be necessary.

Please fix or help ;-).

mboskamp commented 1 year ago

Hi @ThorstenEngel, thanks for reaching out to us. I will look into the changes you mentioned and update you once I have an answer.

In the meantime, it really helps a lot if you would stick to the issue templates. They ask for the information we need in a structured way and help us work on those issues more efficiently. Thanks!

ThorstenEngel commented 1 year ago

Environment (Required on creation)

WSL (Linux on Windows)

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

CE Build fails if done according to the https://github.com/camunda/docker-camunda-bpm-platform/blob/next/README.md#build-a-released-version

Steps to reproduce (Required on creation)

docker build -t camunda-bpm-platform --build-arg DISTRO=tomcat --build-arg VERSION=7.16 .

Observed Behavior (Required on creation)

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalone-pom: Couldn't download artifact: Could not transfer artifact org.camunda.bpm.tomcat:camunda-bpm-tomcat:tar.gz:7.16-SNAPSHOT from/to camunda-nexus (https://repository.nexus.camunda.cloud/content/groups/internal/): authentication failed for https://repository.nexus.camunda.cloud/content/groups/internal/org/camunda/bpm/tomcat/camunda-bpm-tomcat/7.16-SNAPSHOT/camunda-bpm-tomcat-7.16-SNAPSHOT.tar.gz, status: 401 Unauthorized

Expected behavior (Required on creation)

No build errors.

Root Cause (Required on prioritization)

Of course I am not authorized, because I don't have credentials for https://repository.nexus.camunda.cloud. I assume this will hit all ce builds not performed within your CI.

Solution Ideas

Take out mirror in case of CE builds from settings.xml.

mboskamp commented 1 year ago

Hi @ThorstenEngel,

Sorry for the long wait. We decided that we will not change this behavior. If you want to build the image yourself, please remove the mirror from the settings.xml by hand or pass in your own settings.xml. I will adjust the documentation in the README.

Best, Miklas

ThorstenEngel commented 1 year ago

Dear Miklas,

thank you for checking. And thanks that you offer now the ARM64 docker images as well. This makes building for me obsolete ;-).