Vagrant virtual machine set up for developing, testing, and (possibly) deploying the ACPC poker GUI client and related gems.
Edit the paths in grab_projects.sh
to retrieve your fork of the ACPC repositories if desired.
-
Download this repository
-
Install Ruby (>= 1.9.2)
- On Windows, go to http://rubyinstaller.org/downloads/ and install:
- Ruby 2.1.6
- Ensure that the "Add Ruby executables to your PATH" is selected during installation so you can run the
gem
andbundle
later.
- Ensure that the "Add Ruby executables to your PATH" is selected during installation so you can run the
- The corresponding DevKit
- Follow these Quick Start instructions.
- Ruby 2.1.6
- On Windows, go to http://rubyinstaller.org/downloads/ and install:
-
Install Bundler,
gem install bundler
-
Install gems,
bundle install
in project root) -
Install cookbooks,
librarian-chef install
-
Start the virtual machine,
vagrant up
- This step could take tens of minutes
- If connecting to the VM times out, but you can still manually connect to it afterwards, then run
vagrant halt
andvagrant up
orvagrant reload
. This occurred for me on Windows and vagrant was able to complete the VM setup after restarting.
-
Log in to the virtual machine,
vagrant ssh
on Linux or OSX, PuTTY on Windows- On Windows, you can try
vagrant ssh
first, but if that fails, follow these instructions. Afterwards, you should be apply to access the VM from PuTTY orvagrant ssh
.
- On Windows, you can try
-
Navigate to shared project directory,
cd /vagrant/repositories/acpc_poker_gui_client
-
In most cases, you will want to use v1.2 since the previous versions are quite old. The rest of the instructions assume v1.2. Run
git checkout v1.2
to do this. -
Install gems,
bundle install
-
Compile the ACPC server project,
bundle exec acpc_dealer compile
-
Modify
config/overlord.yml
to be:redis: redis-server config/redis.conf tm-server: bundle exec acpc_table_manager -t config/acpc_table_manager.yml
-
Run
script/start_daemons
to start the table manager. -
Start the Rails server,
bundle exec rails s
-
Point your browser to
localhost:3000
, and you should see the match start screen. You should now be able to start a match. If that succeeds, congratulations, you've completed the set up!