Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Test Vagrant image - runs the build pack
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
|
|||
.DS_Store | |||
.vagrant |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
Vagrant::Config.run do |config| | |||
config.vm.box = "lucid64" | |||
config.vm.box_url = "http://files.vagrantup.com/lucid64.box" | |||
# Foreman default. | |||
config.vm.forward_port("http", 5000, 5000) | |||
# config.vm.share_folder("build", "/build", "app") | |||
config.vm.provision :shell, :path => "provision.sh" | |||
end |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
#!/bin/bash | |||
|
|||
apt-get install -y libperl-dev curl | |||
|
|||
# Cleanup | |||
echo '---> Cleaning up..' | |||
rm -rf /app | |||
rm -rf /lp | |||
|
|||
mkdir -p /lp/build | |||
mkdir -p /tmp/lp_cache | |||
|
|||
cp -R /vagrant/* /lp | |||
mv /lp/sample_app/* /lp/build/ | |||
rm -rf /lp/sample_app | |||
|
|||
cd /tmp | |||
|
|||
echo '---> Running detect..' | |||
/lp/bin/detect /lp/build | |||
echo '---> Running compile..' | |||
/lp/bin/compile /lp/build /tmp/lp_cache | |||
echo '---> Running release..' | |||
/lp/bin/release | |||
echo '---> Moving result in to /app..' | |||
mv /lp/build /app | |||
chown -R vagrant:vagrant /app |