Giter Club home page Giter Club logo

packer-centos's Introduction

Packer templates for CentOS

Overview

This repository contains Packer templates for creating CentOS Vagrant boxes.

Master Branch Boxes

https://app.vagrantup.com/jayknoxqu/boxes/aliyun-centos

Docker Branch Boxes

pre-install docker, docker_compose

https://app.vagrantup.com/jayknoxqu/boxes/docker-centos

Build dependencies

Packer: https://www.packer.io/downloads.html

VirtualBox: https://www.virtualbox.org/wiki/Downloads

Building the Vagrant boxes with Packer

We make use of JSON files containing user variables to build specific versions of CentOS. You tell packer to use a specific user variable file via the -var-file= command line option. This will override the default options on the core packer-metadata.json packer template, which builds CentOS 7 by default.

Customize template

Customize the boxes by modifying the centos-template.json file

{
  "iso_url": "https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso",
  "iso_checksum": "38d5d51d9d100fd73df031ffd6bd8b1297ce24660dc8c13a3b8b4534a4bd291c",
  "iso_checksum_type": "sha256",
  "iso_version": "7.6-x64",
  "disk_size": "65536",
  "memory": "1024",
  "cpus": "2"
}

Tip: iso_url value can be local disk path or remote url

Running Packer

packer build -var-file=centos-template.json packer-metadata.json

debug log output from

PACKER_LOG=1 packer build -var-file=centos-template.json packer-metadata.json

Using box

Modify the value config.vm.box in file Vagrantfile, and then execute the command

vagrant up

reference

https://www.packer.io/docs/builders/virtualbox-iso.html

相关中文文档

CentOS7.6安装VirtualBox6.0

CentOS7.6安装Vagrant2.2

Vagrantfile详细说明

packer-centos's People

Contributors

amdprophet avatar andreitroiebbc avatar annawake avatar berendt avatar bertvv avatar cuibonobo avatar dol avatar ethankhall avatar fgs-dbudwin avatar fkrull avatar fydon avatar gabelbombe avatar hmalphettes avatar jason-azze-cdna avatar jayknoxqu avatar jblaine avatar jrosengren avatar kkirsche avatar lvillani avatar mahata avatar mgruner avatar misheska avatar n3gster avatar rasa avatar rickard-von-essen avatar ruslansagitov avatar tai-ga avatar tas50 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

menghuan

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.