/packer-arm64-wordpress

A project to build a Ubuntu 22.04 Server arm64 WordPress VMware base image & a Vagrant Box

Primary LanguageHCL

WordPress Vagrant Box Pipeline for ARM

Published Vagrant Box

Prerequisites

Required Vagrant Plugins

  • vagrant-vmware-desktop --> via Vagrent Plugins
  • vagrant-vmware-utility --> via Homebrew Cask
    • Requires Rosetta

To install Rosetta:

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Automatic (Make) Method

Crate Image

make image

Add Image to Vagrant

make vagrant-add 

Manual Method

Packer Commands

Initialize the Packer project:

packer init wordpress

Build the image and Box wuth Packer:

packer build wordpress

Vagrant Commands

Add the Vagrant Box using the packer_wordpress_vmware_arm64.box that is a result of the Packer build.

vagrant box add DoctorDan/Wordpress packer_wordpress_vmware_arm64.box

(optional) If a Vagrantfile doesn't already exist use vagrant init to create one:

vagrnat init DoctorDan/Wordpress

Start up the Vagrant Box:

vagrant up

Example Vagrant File

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
  config.vm.box = "DoctorDan/Wordpress"
  config.ssh.insert_key = false
  config.ssh.password = "vagrant"
  config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
end