Comments (3)
images should be cached, even if you use url - do you find this is not the case? are you using the latest version?
from packer-plugin-arm-image.
I want to use the outcome of a previous build to be used in a subsequent one.
The first downloads an image and sets up some basic things and might take a while and the second run will just change some config which should be rather fast.
from packer-plugin-arm-image.
Figured it out...
I renamed the image
to prom_base.img
and ran this.
{
"variables": {},
"builders": [
{
"type": "arm-image",
"iso_url": "file:////build/output-arm-image/prom_base.img",
"last_partition_extra_size": 1048576000,
"iso_checksum_type": "md5",
"iso_checksum": "6415daf45a89e98339180bd59de0ec12",
"image_type": "raspberrypi",
"image_mounts": ["/boot", "/"]
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"mkdir -p /opt/build/samples"
]
},{
"type": "file",
"source": "/build/samples/",
"destination": "/opt/build/samples"
},{
"type": "shell",
"inline": [
"bash -x /opt/build/samples/scripts/prometheus_setup.sh",
"bash -x /opt/build/samples/scripts/grafana_setup.sh",
"bash -x /opt/build/samples/scripts/loki_setup.sh"
]
},{
"type": "shell",
"inline": [
"rm -rf /opt/build"
]
}
]
}
Ran it like that...
docker run --rm --privileged
-v ${PWD}:/build:ro -v ${PWD}/packer_cache:/build/packer_cache \
-v ${PWD}/output-arm-image:/build/output-arm-image \
packer-builder-arm build samples/raspbian_prom_setup.json
from packer-plugin-arm-image.
Related Issues (20)
- arm-image: chroot: failed to run command '/bin/sh': Exec format error HOT 2
- Can Please confirm if md5 checksum is validated properly? HOT 5
- Unable to build image using docker, pre-built docker, or vagrant HOT 1
- HCP Packer Support HOT 2
- ARM "native" logic creating invalid images HOT 3
- no partitions defined while using dind (docker in a docker) with gitlab ci runner HOT 2
- Contribute Cloud-Init + Ubuntu 20.04/22.04 Samples to Repository HOT 1
- How to bind mount the chroot directory onto the chroot / HOT 2
- Packer unnecessarily injecting environment variables from host with shell provisioner HOT 4
- Multiple output files release HOT 3
- Error: unrecognized arguments: playbook.yml HOT 1
- Created image is aarch64 instead of armv7l
- Losetup sporadically fails not finding all devices
- losetup --show -f -P images/... error different of partitions than expected 1
- Support for GPT partition
- BtrFS support HOT 2
- Shrinking filesystem after provisioning
- Image is resized but last partition is not HOT 1
- packer 1.11.0 breaks arm-image plugin
- Build freezing at random Times at provisioning stage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-arm-image.