Clean up after ourselves when building base boxes
This commit is contained in:
parent
5f42f2b4dd
commit
2c0000b8cc
6 changed files with 25 additions and 2 deletions
|
@ -157,4 +157,11 @@ sed -i "s/<TODAY>/${NOW}/" metadata.json
|
||||||
# Vagrant box!
|
# Vagrant box!
|
||||||
tar -czf $PKG ./*
|
tar -czf $PKG ./*
|
||||||
|
|
||||||
echo "The base box was built successfully to ${WORKING_DIR}/${PKG}"
|
chmod +rw ${WORKING_DIR}/${PKG}
|
||||||
|
mkdir -p ${CWD}/output
|
||||||
|
mv ${WORKING_DIR}/${PKG} ${CWD}/output
|
||||||
|
|
||||||
|
# Clean up after ourselves
|
||||||
|
rm -rf ${WORKING_DIR}
|
||||||
|
|
||||||
|
echo "The base box was built successfully to ${CWD}/output/${PKG}"
|
||||||
|
|
|
@ -140,4 +140,12 @@ sed -i "s/<TODAY>/${NOW}/" metadata.json
|
||||||
# Vagrant box!
|
# Vagrant box!
|
||||||
tar -czf $PKG ./*
|
tar -czf $PKG ./*
|
||||||
|
|
||||||
echo "The base box was built successfully to ${WORKING_DIR}/${PKG}"
|
chmod +rw ${WORKING_DIR}/${PKG}
|
||||||
|
mkdir -p ${CWD}/output
|
||||||
|
mv ${WORKING_DIR}/${PKG} ${CWD}/output
|
||||||
|
|
||||||
|
# Clean up after ourselves
|
||||||
|
rm -rf ${WORKING_DIR}
|
||||||
|
lxc-destroy -n ${RELEASE}-base
|
||||||
|
|
||||||
|
echo "The base box was built successfully to ${CWD}/output/${PKG}"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rootfs=$1
|
rootfs=$1
|
||||||
|
|
||||||
echo "installing babushka"
|
echo "installing babushka"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rootfs=$1
|
rootfs=$1
|
||||||
|
|
||||||
echo "installing chef"
|
echo "installing chef"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rootfs=$1
|
rootfs=$1
|
||||||
|
|
||||||
echo "installing puppet"
|
echo "installing puppet"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rootfs=$1
|
rootfs=$1
|
||||||
|
|
||||||
echo "installing salt"
|
echo "installing salt"
|
||||||
|
|
Loading…
Add table
Reference in a new issue