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

Problem creating docker image of jhipster project (Issue 19071) #19104

Closed
FrancescoMez79 opened this issue Jul 7, 2022 · 5 comments
Closed

Comments

@FrancescoMez79
Copy link

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
Copy link
Author

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
Copy link
Author

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$
"

@atomfrede
Copy link
Member

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 ?

@FrancescoMez79
Copy link
Author

FrancescoMez79 commented Jul 11, 2022

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

@DanielFran
Copy link
Member

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

@deepu105 deepu105 added this to the 8.0.0-beta.3 milestone Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants