Gradle docker fails to build images due to execution order
up vote
0
down vote
favorite
I am trying to use gradle docker palantir plugin for building several docker images. One of the images is the base image so it needs to be published first. However, the images are loaded alphabetically by gradle task. Because the images are tagged with the revision number the build fails.
The error is:
manifest for mswifimesh-register.c.ptin.corppt.com:5000/mswifimesh-base:1.0.0-r240 not found
How can I define the building order of the gradle dockerPush task?
docker gradle build
add a comment |
up vote
0
down vote
favorite
I am trying to use gradle docker palantir plugin for building several docker images. One of the images is the base image so it needs to be published first. However, the images are loaded alphabetically by gradle task. Because the images are tagged with the revision number the build fails.
The error is:
manifest for mswifimesh-register.c.ptin.corppt.com:5000/mswifimesh-base:1.0.0-r240 not found
How can I define the building order of the gradle dockerPush task?
docker gradle build
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to use gradle docker palantir plugin for building several docker images. One of the images is the base image so it needs to be published first. However, the images are loaded alphabetically by gradle task. Because the images are tagged with the revision number the build fails.
The error is:
manifest for mswifimesh-register.c.ptin.corppt.com:5000/mswifimesh-base:1.0.0-r240 not found
How can I define the building order of the gradle dockerPush task?
docker gradle build
I am trying to use gradle docker palantir plugin for building several docker images. One of the images is the base image so it needs to be published first. However, the images are loaded alphabetically by gradle task. Because the images are tagged with the revision number the build fails.
The error is:
manifest for mswifimesh-register.c.ptin.corppt.com:5000/mswifimesh-base:1.0.0-r240 not found
How can I define the building order of the gradle dockerPush task?
docker gradle build
docker gradle build
asked Nov 8 at 16:43
André Alves
120119
120119
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
I solved by adding on buid.gradle:
project.afterEvaluate {
dockerPush.dependsOn('docker_base_image:dockerPush')
}
This way first is executed the dockerPush task from the base image.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
I solved by adding on buid.gradle:
project.afterEvaluate {
dockerPush.dependsOn('docker_base_image:dockerPush')
}
This way first is executed the dockerPush task from the base image.
add a comment |
up vote
0
down vote
accepted
I solved by adding on buid.gradle:
project.afterEvaluate {
dockerPush.dependsOn('docker_base_image:dockerPush')
}
This way first is executed the dockerPush task from the base image.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
I solved by adding on buid.gradle:
project.afterEvaluate {
dockerPush.dependsOn('docker_base_image:dockerPush')
}
This way first is executed the dockerPush task from the base image.
I solved by adding on buid.gradle:
project.afterEvaluate {
dockerPush.dependsOn('docker_base_image:dockerPush')
}
This way first is executed the dockerPush task from the base image.
answered Nov 15 at 15:09
André Alves
120119
120119
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53212321%2fgradle-docker-fails-to-build-images-due-to-execution-order%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown