VxRackNeutrino / Hero

Hero - IdleRPG for OpenStack
Apache License 2.0
0 stars 1 forks source link

Create Hero Cloud Image #21

Open adrianmo opened 7 years ago

adrianmo commented 7 years ago

Create an OpenStack image that will launch the Hero client and register to the game engine.

The image should automatically run the Hero client at startup.

hldnova commented 7 years ago

Progress as of 9/29:

Created an image from ubuntu 14.04 with python/git etc. installed. When the a VM is launched from that image, user can paste the following script to "Configuration"

!/bin/bash

export GAME_CONTROLLER_IP=10.246.154.49 export HERO_NAME=hostname export HERO_TITLE="Neutrino Guru"

git config --global http.sslVerify false cd /opt git clone https://github.com/VxRackNeutrino/Hero python /opt/Hero/scripts/hero-register-test.py

It should register the user with a mockup game controller. The details is at: https://github.com/VxRackNeutrino/Hero/tree/develop/scripts/templates.

The test setup is on pod4, http://10.246.152.160. demo/demoadmin/admin123. The image name ubuntu-14.04-snapshot. Once the new VM is successfully launched, you can view the new hero registration via http://10.246.154.49/api/heros.