-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
73 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
packer_cache | ||
packer_cache | ||
*.box | ||
output-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
build: | ||
packer build template.json | ||
|
||
only-vmware: | ||
packer build --only vmware-iso template.json | ||
|
||
only-virtualbox: | ||
packer build --only virtualbox-iso template.json | ||
|
||
clean: | ||
rm -fv *.box | ||
rm -rfv output-* | ||
|
||
add-box: | ||
-vagrant box remove docker-vmware | ||
vagrant box add ubuntu-14.04-with-docker.vmware.box --name docker-vmware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
apt-get -yq install dstat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
curl -L https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose | ||
chmod +x /usr/local/bin/docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# Install the Linux headers | ||
apt-get -y install build-essential linux-headers-$(uname -r) | ||
set -eu | ||
|
||
# Install the VMware Fusion guest tools | ||
echo "==> install the linux headers" | ||
apt-get -yqq install git build-essential linux-headers-$(uname -r) | ||
|
||
echo "==> install the vmware fusion guest tools" | ||
cd /tmp | ||
|
||
echo "==> download vmware-tools-patches" | ||
git clone https://github.com/rasa/vmware-tools-patches.git | ||
mkdir -p /mnt/cdrom | ||
mount -o loop ~/linux.iso /mnt/cdrom | ||
tar zxf /mnt/cdrom/VMwareTools-*.tar.gz -C /tmp/ | ||
/tmp/vmware-tools-distrib/vmware-install.pl -d | ||
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp/vmware-tools-patches/ | ||
cd /tmp/vmware-tools-patches/ | ||
./untar-and-patch-and-compile.sh | ||
rm /home/ubuntu/linux.iso | ||
umount /mnt/cdrom | ||
rm -rf /tmp/vmware-tools-patches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters