generator-jhipster icon indicating copy to clipboard operation
generator-jhipster copied to clipboard

Problem creating docker image of jhipster project (Issue 19071)

Open FrancescoMez79 opened this issue 3 years ago • 4 comments

Dear Support, you have closed the old ticket 19071, but we have not solved our problem.

We have added the log when we remove the --offline from command : ./mvnw -Pprod package verify jib:dockerBuild --offline

Can you please help us to solve this problem?

Thanks, Francesco

FrancescoMez79 avatar Jul 07 '22 04:07 FrancescoMez79

We re-write the last comments:

"Hello, if we remove --offline from command, we have another problem: [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.5.1:dockerBuild (default-cli) on project simpletmt-multitenancy: 429 Too Many Requests [ERROR] { [ERROR] "errors": [ [ERROR] { [ERROR] "code": "TOOMANYREQUESTS", [ERROR] "message": "You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit" [ERROR] } [ERROR] ]

How can we solve this problem?

We have tried to login in docker by "docker login" command, but after this, re-sending the build command : ./mvnw package -Pprod verify jib:dockerBuild

We receive the same error of rate limit of docker.

for this cause, we have added --offline in the command."

FrancescoMez79 avatar Jul 07 '22 04:07 FrancescoMez79

Last comment :

"This is the result of jhipster info command : "eminds@eminds-VirtualBox:~/jhipster/simpletmtapp/simpletmtapp$ jhipster info INFO! Using JHipster version installed locally in current project's node_modules INFO! Executing jhipster:info INFO! Options: from-cli: true Welcome to the JHipster Information Sub-Generator

JHipster Version(s) [email protected] /home/eminds/jhipster/simpletmtapp/simpletmtapp ├── [email protected] └─┬ [email protected] └── [email protected] deduped

JHipster configuration, a .yo-rc.json file generated in the root folder .yo-rc.json file JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory JDL entity definitions Environment and Tools java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

git version 2.17.1

node: v12.20.0

npm: 6.14.8

yeoman: 3.1.0

yarn: 1.22.10

Docker version 20.10.10, build b485636

docker-compose version 1.22.0, build f46880fe

INFO! Congratulations, JHipster execution is complete! eminds@eminds-VirtualBox:~/jhipster/simpletmtapp/simpletmtapp$ "

FrancescoMez79 avatar Jul 07 '22 04:07 FrancescoMez79

Maybe you need to tell jib what authentication to use too? Did you have a look at https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin#authentication-methods ?

atomfrede avatar Jul 07 '22 12:07 atomfrede

We have tried to setting authentication using Maven setting.

We have changed the settings.xml in .m2 dir of Ubuntu, setting this :

    <id>registry.hub.docker.com</id>
    <username>fmezzina</username>
    <password>xxxxx</password>
</server>

but we have the same error removing --offline from command.

What I wrong? What do we set in "id" field? I have setted my credentials of Docker.

Thanks, Francesco

FrancescoMez79 avatar Jul 11 '22 12:07 FrancescoMez79

@FrancescoMez79 since this is not a jhispter bug, it is better to open a ticket in stackoverflow

DanielFran avatar Aug 26 '23 16:08 DanielFran