This repository has been archived by the owner on Jun 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debian vagrant box. Ready to run minimesos
- Loading branch information
1 parent
ec1bdfc
commit ee03079
Showing
3 changed files
with
58 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 | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ minimesosFile | |
.gradle/ | ||
build/ | ||
|
||
# Vagrant working files | ||
.vagrant | ||
|
||
# Build system | ||
.gradle/ | ||
build/ | ||
|
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,13 @@ | ||
Vagrant.configure(2) do |config| | ||
|
||
config.vm.box = "debian/contrib-jessie64" | ||
|
||
config.vm.provider "virtualbox" do |vb| | ||
vb.memory = "4096" | ||
end | ||
|
||
config.vm.network "private_network", ip: "192.168.123.11" | ||
|
||
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env bash | ||
|
||
### | ||
### JDK and Gradle | ||
### | ||
|
||
echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/openjdk.list && \ | ||
apt-get update -qq && apt-get install -qqy \ | ||
apt-transport-https \ | ||
curl \ | ||
unzip \ | ||
openjdk-8-jdk | ||
|
||
curl https://downloads.gradle.org/distributions/gradle-2.12-bin.zip --output /tmp/gradle-2.12-bin.zip --silent | ||
unzip -q /tmp/gradle-2.12-bin.zip -d /usr/share | ||
|
||
echo "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre" >> /home/vagrant/.profile | ||
echo "export GRADLE_HOME=/usr/share/gradle-2.12" >> /home/vagrant/.profile | ||
echo "export PATH=\$JAVA_HOME/bin:\$GRADLE_HOME/bin:\$PATH" >> /home/vagrant/.profile | ||
|
||
update-ca-certificates -f | ||
|
||
### | ||
### Getting Docker installed | ||
### | ||
echo "" | ||
echo "Getting Docker" | ||
|
||
echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list && \ | ||
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \ | ||
apt-get update -qq && \ | ||
apt-get -qqy install docker-engine=1.9.1-0~jessie | ||
|
||
echo "Enabling non-sudo access to docker" | ||
gpasswd -a vagrant docker | ||
|
||
service docker start | ||
|
||
echo '' | ||
echo 'Apply command below on the host machine' | ||
echo 'sudo route delete 172.17.0.0/16; sudo route -n add 172.17.0.0/16 192.168.123.11' | ||
|