Skip to content

packer repo using virtualbox-ovf starting from an existing ova

Notifications You must be signed in to change notification settings

kikitux/packer-oraclelinux-ovf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-oraclelinux-ovf

travis

POC of packer using virtualbox-ovf that allow us start from an existing box.

read about packer virtualbox-ovf here

requirements:

how to use:

Make

A makefile is provided to help with different tasks.

make will build all the boxes from template.

make clean will remove the file.box

make cleanall will remove the file.box and the download ova from packer_cache

make removebox will remove the boxes from vagrant

Manually

packer build oraclelinux7.json
cd vagrant/default
vagrant up

Packer will download the ova, and run the provisioning scripts defined in the template. At the end, it will create oraclelinux7.box file that can be used with vagrant.

This example used the ova box available here: https://github.com/kikitux/packer-oraclelinux-ovf/releases

xe

There is a packer box for oracle-xe database (Express)

using packer, we will create a local vagrant box xe.box with our rpm installed.

Packer

packer build xe.json

Vagrant

on first vagrant up, our db will be configured.

cd vagrant/xe
vagrant up

odpi

Using the same xe box, there is a sample aplication, oracle odpi C/CPP driver.

Packer

packer build xe.json

Vagrant

on first vagrant up, our db will be configured.

cd vagrant/odpi
vagrant up

this will:

  • configure xe database
  • clone odpi repo
  • compile
  • run all the test

Sample run log here

cx_Oracle_release

Using the same xe box, there is a sample python script using cx_Oracle from release.

Packer

packer build xe.json

Vagrant

on first vagrant up, our db will be configured.

cd vagrant/cx_Oracle_release
vagrant up

this will:

  • configure xe database
  • Install python2.7 + pip
  • Upgrade pip
  • Install cx_Oracle python
  • run our sample app