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

Task dockerPush build too 0.26.0 -> 0.30.0 #509

Open
ccwolfram opened this issue Nov 26, 2021 · 1 comment
Open

Task dockerPush build too 0.26.0 -> 0.30.0 #509

ccwolfram opened this issue Nov 26, 2021 · 1 comment

Comments

@ccwolfram
Copy link

What happened?

After update version 0.26.0 to 0.30.0 the command:

./gradlew dockerPush --info

Update too:
Quarkus version 1.13.4.Final -> 2.4.2.Final
GradleVersion 7.0.2 -> 7.3

Start build and push the docker images

What did you want to happen?

Only execute the push

Logs

./gradlew dockerPush --info
Initialized native services in: /home/servername/.gradle/native
Initialized jansi services in: /home/servername/.gradle/native
Found daemon DaemonInfo{pid=906540, address=[50498c74-8b16-4b44-aa28-2db3881faecf port:42379, addresses:[/127.0.0.1]], state=Idle, lastBusy=1637772081156, ... however its context does not match the desired criteria.
At least one daemon option is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=/usr/lib/jvm/java-11-openjdk-11.0.13.0.8-2.fc34.x86...-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=e340e635-2e6c-4275-af63-20ccbeb9a1cc,javaHome=/usr/lib/jvm/java-11-openjdk-11.0.13.0.8-2.fc34.x86_64,...,-Duser.country=US,-Duser.language=en,-Duser.variant]

Looking for a different daemon...
Removing 1 daemon stop events from registry
Starting a Gradle Daemon, 3 busy and 1 incompatible Daemons could not be reused, use --status for details
Starting process 'Gradle build daemon'. Working directory: /home/servername/.gradle/daemon/7.3 Command: /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-2.fc34.x86_64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/servername/.gradle/wrapper/dists/gradle-7.3-bin/ddwl0k7mt9g6ak16i1m905vyv/gradle-7.3/lib/gradle-launcher-7.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.3
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 0.915 secs.
The client will now receive all logging from the daemon (pid: 327649). The daemon log file: /home/servername/.gradle/daemon/7.3/daemon-327649.out.log
Starting build in new daemon [memory: 512 MiB]
Using 8 worker leases.
Watching the file system is configured to be enabled if available
Now considering [/home/servername/sources/github-repo/my_project] as hierarchies to watch
File system watching is active
Starting Build
Settings evaluated using settings file '/home/servername/sources/github-repo/my_project/settings.gradle'.
Projects loaded. Root project using build file '/home/servername/sources/github-repo/my_project/build.gradle'.
Included projects: [root project 'prj', project ':module1', project ':module2', project ':module3']

Configure project :
Evaluating root project 'prj' using build file '/home/servername/sources/github-repo/my_project/build.gradle'.
Gradle: 7.3
Java: 11.0.13 (Red Hat, Inc. 11.0.13+8)
Path Java: /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-2.fc34.x86_64

Configure project :module1
Evaluating project ':module1' using build file '/home/servername/sources/github-repo/my_project/module1/build.gradle'.

Configure project :module2
Evaluating project ':module2' using build file '/home/servername/sources/github-repo/my_project/module2/build.gradle'.

Configure project :module3
Evaluating project ':module3' using build file '/home/servername/sources/github-repo/my_project/module3/build.gradle'.
All projects evaluated.
Selected primary task 'dockerPush' from project :
Tasks to be executed: [task ':dockerClean', task ':dockerPrepare', task ':docker', task ':dockerTagLatest', task ':dockerTag', task ':dockerPush']
Tasks that were excluded: []
:dockerClean (Thread[Execution worker for ':',5,main]) started.

Task :dockerClean
Caching disabled for task ':dockerClean' because:
Build cache is disabled
Task ':dockerClean' is not up-to-date because:
Task has not declared any outputs despite executing actions.
:dockerClean (Thread[Execution worker for ':',5,main]) completed. Took 0.094 secs.
:dockerPrepare (Thread[Execution worker for ':',5,main]) started.

Task :dockerPrepare
Watching 1 directories to track changes
Watching 7 directories to track changes
Watching 8 directories to track changes
Watching 9 directories to track changes
Watching 9 directories to track changes
Watching 10 directories to track changes
Caching disabled for task ':dockerPrepare' because:
Build cache is disabled
Task ':dockerPrepare' is not up-to-date because:
Output property 'destinationDir' file /home/servername/sources/github-repo/my_project/build/docker has been removed.
Output property 'destinationDir' file /home/servername/sources/github-repo/my_project/build/docker/Dockerfile has been removed.
Output property 'destinationDir' file /home/servername/sources/github-repo/my_project/build/docker/iptables has been removed.
Watching 9 directories to track changes
Watching 16 directories to track changes
:dockerPrepare (Thread[Execution worker for ':',5,main]) completed. Took 0.756 secs.
:docker (Thread[Execution worker for ':',5,main]) started.

Task :docker
Caching disabled for task ':docker' because:
Build cache is disabled
Task ':docker' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command 'docker''. Working directory: /home/servername/sources/github-repo/my_project/build/docker Command: docker build --no-cache --build-arg APP_NAME=private.registry.com/my_project:0.0.1 --build-arg APP_VERSION=0.0.1 --build-arg JDK_VERSION=openjdk-11 -t private.registry.com/my_project:0.0.1 .
Successfully started process 'command 'docker''
Sending build context to Docker daemon 105.7MB
Step 1/20 : FROM private.registry.com/java:openjdk-11.latest
---> 492df82757f4
Step 2/20 : ARG APP_NAME
---> Running in 606f8ad114dd
Removing intermediate container 606f8ad114dd
---> fdd1f3a83d2b
Step 3/20 : ARG APP_VERSION
---> Running in da3a7f8f00c1
Removing intermediate container da3a7f8f00c1
---> 95f5c574b23d
Step 4/20 : ARG JDK_VERSION
---> Running in 2c67b0f8087a
Removing intermediate container 2c67b0f8087a
...
Removing intermediate container b7bef964dda9
---> cdeb902fb646
Successfully built cdeb902fb646
Successfully tagged private.registry.com/my_project:0.0.1
:docker (Thread[Execution worker for ':',5,main]) completed. Took 49.117 secs.
:dockerTagLatest (Thread[Execution worker for ':',5,main]) started.

Task :dockerTagLatest
Caching disabled for task ':dockerTagLatest' because:
Build cache is disabled
Task ':dockerTagLatest' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command 'docker''. Working directory: /home/servername/sources/github-repo/my_project/build/docker Command: docker tag private.registry.com/my_project:0.0.1 private.registry.com/my_project:latest
Successfully started process 'command 'docker''
:dockerTagLatest (Thread[Execution worker for ':',5,main]) completed. Took 0.031 secs.
:dockerTag (Thread[Execution worker for ':',5,main]) started.

Task :dockerTag
Skipping task ':dockerTag' as it has no actions.
:dockerTag (Thread[Execution worker for ':',5,main]) completed. Took 0.0 secs.
:dockerPush (Thread[Execution worker for ':',5,main]) started.

Task :dockerPush
Caching disabled for task ':dockerPush' because:
Build cache is disabled
Task ':dockerPush' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command 'docker''. Working directory: /home/servername/sources/github-repo/my_project/build/docker Command: docker push private.registry.com/my_project:0.0.1
Successfully started process 'command 'docker''
The push refers to repository [private.registry.com/my_project]
7c4e0b56feeb: Preparing
00899eca7343: Preparing
86871c9dbad0: Preparing
58ec23772431: Preparing
e00fb957d141: Preparing
ffebe33ccee8: Preparing
9814c682d579: Preparing
69e2da9bbdf5: Preparing
...
6b676aeb0c6a: Layer already exists
174f56854903: Layer already exists
00899eca7343: Pushed
58ec23772431: Pushed
0.0.1: digest: sha256:316236c2159c824533d890e66bee07f78cb5068439ddf7e4e9cd800215682a54 size: 3668
:dockerPush (Thread[Execution worker for ':',5,main]) completed. Took 35.967 secs.

BUILD SUCCESSFUL in 1m 32s
5 actionable tasks: 5 executed

@prokod
Copy link

prokod commented Jan 18, 2022

This is also true for latest 0.32

Current behavior is not inline with Gradle Philosophy: Tasks should be bound in responsibility. If a user would like to chain tasks he should do it himself in his own project's build.gradle, In the same spirit tasks should support incremental building for efficiency.

In short +1 @ccwolfram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants