Page 1 of 1
Vagrant Is Back and needs testing.
Posted: 23 Apr 2014, 07:27
by wushin
https://github.com/wushin/tmwa-vagrant
Easier to use TMW development environment originally pioneered by Melkior has been picked up and brought back to life.
It's still testing but it uses a custom image. So we have more control over what libraries go on it.
Enjoy.
Wushin
Re: Vagrant Is Back and needs testing.
Posted: 23 Apr 2014, 07:59
by Cassy
Thanks again wushi
I will so test it when I'm back home.
I was so happy when Melkior created this and am really hoping it works again.
This is absolutely awesome for everyone interested in developing but using Windows.
Another step to make development easier.
Re: Vagrant Is Back and needs testing.
Posted: 23 Apr 2014, 18:35
by wushin
If it fails to build:
If that returns:
run:
then:
Re: Vagrant Is Back and needs testing.
Posted: 24 Apr 2014, 03:38
by wushin
New Image Release.
Script now checks image for updates
Image is now hosted in the vagrant cloud
Updated README
https://github.com/wushin/tmwa-vagrant
Re: Vagrant Is Back and needs testing.
Posted: 24 Apr 2014, 20:15
by v0id
Code: Select all
[~/dev/tmw/tmwa-vagrant] » git rev-parse HEAD 20:32:26 ☁ master ☀
cb667476fe2067bd5dbb770645408ea33aea59b0
[~/dev/tmw/tmwa-vagrant] » vagrant up 20:32:27 ☁ master ☀
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'wushin/tmw-vagrant' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'wushin/tmw-vagrant'
default: URL: https://vagrantcloud.com/wushin/tmw-vagrant
==> default: Adding box 'wushin/tmw-vagrant' (v0.1.3) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/wushin/tmw-vagrant/version/1/provider/virtualbox.box
==> default: Successfully added box 'wushin/tmw-vagrant' (v0.1.3) for 'virtualbox'!
==> default: Importing base box 'wushin/tmw-vagrant'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'wushin/tmw-vagrant' is up to date...
==> default: Setting the name of the VM: tmwa-vagrant_default_1398365373523_82562
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 6122 => 6122 (adapter 1)
default: 5122 => 5122 (adapter 1)
default: 6901 => 6901 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Mounting shared folders...
default: /vagrant => /home/vincent/dev/tmw/tmwa-vagrant
==> default: Running provisioner: shell...
default: Running: /tmp/vagrant-shell20140424-6387-avi014
stdin: is not a tty
Updating the Virtual Machine
(It can take some time)...
Setting up folder sharing for content...
Cloning themanaworld/tmwa...
Building tmwa (please be patient, this can take some time)...
Cloning themanaworld/tmwa-server-data...
Setting up update hooks...
Creating the configuration files...
GM account can't be found, creating...
Impossible to have a connection with the login-server [127.0.0.1:6901] !
Impossible to have a connection with the login-server [127.0.0.1:6901] !
Starting the server...
Character server IP address : 127.0.0.1 -> 127.0.0.1
Map server IP address : 127.0.0.1 -> 127.0.0.1
read db/item_db.txt done (count=879)
Exp for mob 'Maggot' generated: 6
[...]
Exp for mob 'PsiBrain' generated: 7255
read db/mob_db.txt done
read db/mob_skill_db.txt done
read db/skill_db.txt done
Maps Loaded: 130
Loading NPCs [9130]: npc/annuals/xmas/tree_beard.txt
##############################################################################
# #
# Server is now running. #
# You can reach it by adding a new server to your client. #
# #
# Name: Local Server #
# Address: localhost #
# Port: 6901 #
# Server type: TmwAthena #
# #
# A GM level 99 account has been created with the following credentials. #
# #
# Username: admin #
# Password: vagrant #
# Have fun! #
# #
##############################################################################
All good here.
Only a warning:
Re: Vagrant Is Back and needs testing.
Posted: 25 Apr 2014, 03:44
by wushin
https://github.com/wushin/tmwa-vagrant/tree/stable
Made some improvements:
The VMimage should be versioning now. The latest is 0.1.4.
tmwa-init is a tool to help build and update the sources
All these commands can be wrapped in vagrant ssh -c "command"
- /etc/init.d/tmwa-init {start|stop|restart|build|update|update_server|update_data|admin_reset|install|status}
- start|stop|restart|status All deal with the servers tmwa-{char|login|map}
- build will build what ever you have checked out in tmwa
- update will update both TMWA and TMWA-data to current master repos
- update_server updates TMWA to current master repo
- update_data updates TMWA-data to current master repo
- admin_reset will reset the admin password to vagrant
- install will update and reinstall everything
Re: Vagrant Is Back and needs testing.
Posted: 25 Apr 2014, 04:12
by o11c
It looks like the servers are being run as root inside the VM ... this is going to be a hard failure at some point in the future.
Re: Vagrant Is Back and needs testing.
Posted: 25 Apr 2014, 12:52
by wushin
Totally makes sense. Patched.
Runs as vagrant & does make clean-deps
Re: Vagrant Is Back and needs testing.
Posted: 25 Apr 2014, 14:30
by wushin
On that note as well:
Should build a dev environment on a linux server if they have sudo and perms to /home/tmwa
https://github.com/wushin/tmwa-vagrant/ ... /tmwa-init
So minus the VM that should currently work on Deb Wheezy variants. I've included yum but don't know if Redhat has/needs changes.
Re: Vagrant Is Back and needs testing.
Posted: 26 Apr 2014, 14:21
by wushin
Windows 8 and 1.4.3 vagrant
* Download and install 1.4.3
http://www.vagrantup.com/download-archive/v1.4.3.html
Windows 8: 1.5.0 broken
Installing on windows may give an error if non-ASCII char sets are in the directory name
https://github.com/mitchellh/vagrant/issues/2113
Re: Vagrant Is Back and needs testing.
Posted: 28 Apr 2014, 16:01
by wushin
You might have to download the box image yourself via the
URL found here:
http://54.186.154.168/tmw-vagrant.box
then in vagrant do
Code: Select all
vagrant box add --force wushin/tmw-vagrant PathToBoxFile
make sure the Path does not contain special characters.