packer-plugin-builder-arm

(β˜… 334)

Packer plugin to build ARM images

  • .dockerignore
  • .editorconfig
  • .gitignore
  • .golangci.yml
  • .goreleaser.yml
  • .pre-commit-config.yaml
  • go.mod
  • go.sum
  • LICENSE
  • main.go
  • README.md
  • Vagrantfile

# Installation Guide

1. Get the code
git clone https://github.com/mkaczanowski/packer-plugin-builder-arm

Downloads the entire project code from GitHub to your computer.

cd packer-plugin-builder-arm

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker pull mkaczanowski/packer-plugin-builder-arm:latest

Type this command into your terminal and run it.

docker run --rm --privileged -v /dev:/dev -v ${PWD}:/build mkaczanowski/packer-plugin-builder-arm:latest build boards/raspberry-pi/raspbian.json

Runs the built image as an actual container.

docker run --rm --privileged -v /dev:/dev -v ${PWD}:/build mkaczanowski/packer-plugin-builder-arm:latest build boards/raspberry-pi/raspbian.json -extra-system-packages=bmap-tools,zstd

Runs the built image as an actual container.

docker build -t packer-plugin-builder-arm -f docker/Dockerfile .

Builds a runnable image based on the Dockerfile.

docker run --rm --privileged -v /dev:/dev -v ${PWD}:/build packer-plugin-builder-arm build boards/raspberry-pi/raspbian.json

Runs the built image as an actual container.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

3. Go

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
go build -o packer-plugin-builder-arm

Compiles the Go program into an executable.

βœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.

Pulled directly from this repo's README.

// repository documentation