GithubHelp home page GithubHelp logo

org-deathe / iac-packer-base-rockylinux-8-x64 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 82 KB

Packer Build of Rocky Linux 8 x86_64 Base Vagrant Box and VM Image

License: Other

Makefile 7.43% HCL 86.29% Ruby 0.48% Shell 5.80%
base-image infrastructure-as-code packer packer-template rocky-linux vagrant-box vm-image

iac-packer-base-rockylinux-8-x64's Introduction

Packer Build of Rocky Linux 8 x86_64 Base Vagrant Box and VM Image

This provides the configuration and Makefile to build a Vagrant minimal base box using Packer. The base box is intended for server (terminal) use only so is restricted to a single locale (with en_US being the default) which allows for a smaller box size.

There are templates provided for the following with x86_64 architecture:

  • Rocky-8.8

There is currently no requirement to support older minor release versions or alternative architectures but they could be added if necessary.

Usage Instructions

Prerequisites

The build environment required is macOS or GNU Linux (Fedora 38) Intel x86_64.

To build the box files you will need the following installed.

NOTE: You may need to create the VirtualBox NAT Network 10.0.2.0/24 if it doesn't already exist.

Build

To build the latest, x86_64 base box run make or make build.

$ make

To build a specific release version, use the BOX_VERSION_RELEASE variable.

$ BOX_VERSION_RELEASE=8.8 make

For usage instructions run make help.

$ make help

Box Variants

To build a box variant from an alternative box template use BOX_VARIANT. The default is minimal but there is an alternative minimal-cloud-init template to build boxes that include Cloud-Init. The variant minimal-vmi will generate an VMDK image suitable for importing into AWS.

To build images with an LVM partitioning scheme append the suffix -lvm.

Build a vagrant box with cloud-init support and an LVM partition:

$ BOX_VARIANT=minimal-cloud-init-lvm make

Build an image suitable for importing to a Cloud Provider such as AWS, DigitalOcean, Oracle OCI etc.

$ BOX_VARIANT=minimal-vmi make

Provider

The default provider is libvirt.

To build a box for the virtualbox provider use BOX_PROVIDER.

$ BOX_PROVIDER=virtualbox make

Local Install

To install from a box file, generated by a successful build, use make install supplied with the same environment variables used to build the require box. This will add the box and output a minimal Vagrantfile template that can be used to create a Vagrantfile in a suitable directory for testing.

$ BOX_VARIANT=minimal-cloud-init make install

NOTE: If running vagrant via sudo do the same here to ensure the box is installed for the expected user.

iac-packer-base-rockylinux-8-x64's People

Contributors

jdeathe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.