Das Programmierspiel von der Gulasch-Programmier-Nacht 11

(Latest mirror + merged latest fork by qr4 on Lua 5.3)

Entropia info page https://entropia.de/GPN11:Programmierspiel (dead links)
Origin Gitlab
https://code.nerd2nerd.org/n2n/WeltraumProgrammierNacht

Vagrantfile 934B

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. $preProvision= <<SCRIPT
  4. sudo apt-get update && sudo apt-get install tmux python-pip pkg-config liblua5.3-dev -y
  5. pip install pipenv
  6. sudo mkdir -p /opt/wpn
  7. sudo chown -R vagrant /opt/wpn
  8. SCRIPT
  9. $provision= <<SCRIPT
  10. cd /vagrant
  11. make
  12. mv gameserver server
  13. SCRIPT
  14. $startServer= <<SCRIPT
  15. tmux kill-session -t "wpn"
  16. tmux new -d -n "server" -s "wpn" -c "/vagrant/server" "./gameserver"
  17. SCRIPT
  18. Vagrant.configure("2") do |config|
  19. config.vm.box = "bento/ubuntu-18.04"
  20. config.vm.network "forwarded_port", guest: 8080, host: 8080
  21. config.vm.network "forwarded_port", guest: 8090, host: 8090
  22. # Pre-provision
  23. config.vm.provision "shell", inline: $preProvision
  24. # Provisioning scripts
  25. config.vm.provision "shell", inline: $provision, privileged: false
  26. # Start server in tmux session (every reboot)
  27. config.vm.provision "shell", inline: $startServer, privileged: false, run: "always"
  28. end