-
-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #628 from frankenstein91/vagrant
Vagrant demo
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -29,4 +29,5 @@ yacy.log | |
/.classpath | ||
/.project | ||
/ivy | ||
/lib | ||
/lib | ||
vagrant_yacy/.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure("2") do |config| | ||
# two machines with archlinux | ||
config.vm.define "yacy" do |yacy| | ||
yacy.vm.box = "archlinux/archlinux" | ||
yacy.vm.hostname = "Yacy" | ||
yacy.vm.network "private_network", type: "dhcp" | ||
# forward the port 8090 to the host | ||
yacy.vm.network "forwarded_port", guest: 8090, host: 8090, auto_correct: true, protocol: "tcp" | ||
yacy.vm.network "forwarded_port", guest: 8443, host: 8443, auto_correct: true, protocol: "tcp" | ||
yacy.vm.provision "shell", path: "provision_yacy.sh" | ||
#set the memory to 4GB | ||
yacy.vm.provider "virtualbox" do |vb| | ||
vb.memory = "4096" | ||
vb.cpus = 4 | ||
end | ||
end | ||
|
||
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,19 @@ | ||
#!/bin/bash | ||
sudo pacman-key --init | ||
sudo pacman -Sy --noconfirm archlinux-keyring | ||
sudo pacman-key --refresh-keys | ||
sudo pacman -Syu --noconfirm | ||
sudo pacman -Sy --noconfirm --needed base-devel git python pyalpm | ||
|
||
git clone https://github.com/actionless/pikaur.git | ||
python3 pikaur/pikaur.py -S --noconfirm pikaur devtools python-pysocks python-defusedxml | ||
pikaur -S --noconfirm jdk-openjdk ant | ||
pikaur -S --noconfirm imagemagick ruby qt5-tools qt5-doc gperf python xorg-server-xvfb ghostscript git qt5-svg qt5-xmlpatterns base-devel qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen hyphen-en hyphen-de woff2 cmake qt5-webkit wkhtmltopdf | ||
|
||
cd /opt | ||
git clone --depth 1 https://github.com/yacy/yacy_search_server.git | ||
mv yacy_search_server yacy | ||
cd yacy | ||
ant clean all | ||
chown -R vagrant:vagrant ./ | ||
sudo -u vagrant ./startYACY.sh |