Unused
This commit is contained in:
parent
d634c5dc38
commit
79818f5c65
|
@ -1,8 +0,0 @@
|
||||||
#####################################################
|
|
||||||
Pterodactyl go Daemon Vagrant VM
|
|
||||||
|
|
||||||
Gopath: /home/ubuntu/go
|
|
||||||
Daemon: /home/ubuntu/go/src/github.com/pterodactyl/wings.go
|
|
||||||
Data: /srv/daemon-data
|
|
||||||
|
|
||||||
#####################################################
|
|
|
@ -1,40 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "Provisioning development environment for Pterodactyl go daemon."
|
|
||||||
cp /home/vagrant/go/github.com/pterodactyl/wings.go/.dev/vagrant/motd.txt /etc/motd
|
|
||||||
|
|
||||||
chown -R vagrant:vagrant /home/vagrant/go
|
|
||||||
chown -R vagrant:vagrant /srv
|
|
||||||
|
|
||||||
echo "Update apt repositories"
|
|
||||||
sudo add-apt-repository ppa:longsleep/golang-backports
|
|
||||||
apt-get update > /dev/null
|
|
||||||
|
|
||||||
echo "Install docker"
|
|
||||||
curl -sSL https://get.docker.com/ | sh
|
|
||||||
systemctl enable docker
|
|
||||||
usermod -aG docker vagrant
|
|
||||||
|
|
||||||
echo "Install go"
|
|
||||||
apt-get install -y golang-go
|
|
||||||
echo "export GOPATH=/home/vagrant/go" >> /home/vagrant/.profile
|
|
||||||
export GOPATH=/go
|
|
||||||
echo 'export PATH=$PATH:$GOPATH/bin' >> /home/vagrant/.profile
|
|
||||||
|
|
||||||
echo "Install go dep"
|
|
||||||
sudo -H -u vagrant bash -c 'go get -u github.com/golang/dep/cmd/dep'
|
|
||||||
|
|
||||||
echo "Install delve for debugging"
|
|
||||||
sudo -H -u vagrant bash -c 'go get -u github.com/derekparker/delve/cmd/dlv'
|
|
||||||
|
|
||||||
echo "Install additional dependencies"
|
|
||||||
apt-get -y install mercurial #tar unzip make gcc g++ python > /dev/null
|
|
||||||
|
|
||||||
echo "Install ctop for fancy container monitoring"
|
|
||||||
wget https://github.com/bcicen/ctop/releases/download/v0.7.1/ctop-0.7.1-linux-amd64 -O /usr/local/bin/ctop
|
|
||||||
chmod +x /usr/local/bin/ctop
|
|
||||||
|
|
||||||
echo " ------------"
|
|
||||||
echo "Gopath is /home/vagrant/go"
|
|
||||||
echo "The project is mounted to /home/vagrant/go/src/github.com/pterodactyl/wings"
|
|
||||||
echo "Provisioning is completed."
|
|
9
Vagrantfile
vendored
9
Vagrantfile
vendored
|
@ -1,9 +0,0 @@
|
||||||
Vagrant.configure("2") do |cfg|
|
|
||||||
cfg.vm.box = "bento/ubuntu-16.04"
|
|
||||||
|
|
||||||
cfg.vm.synced_folder "./", "/home/vagrant/go/src/github.com/pterodactyl/wings"
|
|
||||||
|
|
||||||
cfg.vm.provision :shell, path: ".dev/vagrant/provision.sh"
|
|
||||||
|
|
||||||
cfg.vm.network :private_network, ip: "192.168.50.4"
|
|
||||||
end
|
|
Loading…
Reference in New Issue
Block a user