Details
Description
Steps to reproduce:
- Create a new puppet/slave for non-x86 platform, say: fedora-25-aarch64
- Build a local bigtop-puppet image: bigtop-puppet/fedora-25-aarch64
- Build bigtop/slaves image: ./gradlew -POS=fedora-25-aarch64 -Pprefix=1.2.0 bigtop-slaves
This task will failed with following output:
Step 1 : FROM bigtop/puppet:fedora-25-aarch64
Pulling repository docker.io/bigtop/puppet
Tag fedora-25-aarch64 not found in repository docker.io/bigtop/puppet
:bigtop-slaves FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':bigtop-slaves'.
> Process 'command 'docker'' finished with non-zero exit value 1
Cause:
This error is generated as bigtop/slaves task always try to get docker image from docker.io by using the "--pull" param.
Solution:
Add a new param, say "from" for bigtop/slaves task. The default value is "pull" which means pulling from docker.io. User may sepcify the value as "local" so this task can get base image from local system.
Attachments
Issue Links
- links to