Skip to content

Instantly share code, notes, and snippets.

@drscream
Created November 10, 2015 18:46
Show Gist options
  • Save drscream/4364f73cbdeaa56f5b33 to your computer and use it in GitHub Desktop.
Save drscream/4364f73cbdeaa56f5b33 to your computer and use it in GitHub Desktop.
## Depends on your network setup of the global zone build environment
echo '{
"brand": "joyent",
"resolvers": ["8.8.8.8"],
"ram": 512,
"nics": [{
"nic_tag": "switch0",
"ip": "192.168.200.200",
"netmask": "255.255.255.0",
"gateway": "192.168.200.1",
"primary": true
}]
}' > /tmp/template.json
## Set environment variable to work with dz build
# Your global zone build server, require root ssh access
export DZ_BUILD_HOST="your-local-gz-build-server.example.com"
# Path to the template file for the build zone network setup
export DZ_BUILD_TEMPLATE="/tmp/template.json"
# Upload image to remote server
export DZ_BUILD_PUBLISH_URL="https://username:[email protected]"
# Change to your mibe / image working directory
cd mi-example
# Start your build
dz build .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment