Add XPilot X-windows game template (#128)
* Add XPilot X-windows game template. This provides an exmaple of how to use Rancher to manage an X-Windows client application. * Xpilot changes to scheduling to compensate for CoreOS/Rancheros linkage issues * Update Registry template for patched Portus container version, also add affinity rules to avoid networking issues
This commit is contained in:
committed by
Bill Maxwell
parent
524e6f9b30
commit
7577a9dea3
@@ -0,0 +1,29 @@
|
||||
server:
|
||||
environment:
|
||||
PASSWORD: ${PASSWORD}
|
||||
log_driver: ''
|
||||
command:
|
||||
- -server
|
||||
log_opt: {}
|
||||
tty: false
|
||||
stdin_open: false
|
||||
image: sshipway/xpilot:latest
|
||||
labels:
|
||||
xpilot: server
|
||||
client:
|
||||
environment:
|
||||
DISPLAY: ${DISPLAY}
|
||||
NAME: ${NAME}
|
||||
SERVER: xpilot
|
||||
log_driver: ''
|
||||
command:
|
||||
- xpilot
|
||||
log_opt: {}
|
||||
image: sshipway/xpilot:latest
|
||||
links:
|
||||
- server:xpilot
|
||||
tty: false
|
||||
stdin_open: false
|
||||
labels:
|
||||
io.rancher.scheduler.affinity:container_label_soft: xpilot=server
|
||||
io.rancher.container.start_once: 'true'
|
||||
@@ -0,0 +1,29 @@
|
||||
.catalog:
|
||||
name: "XPilot"
|
||||
version: "v0.1"
|
||||
description: "Multiplayer shooting game"
|
||||
uuid: xpilot-0
|
||||
questions:
|
||||
- variable: "PASSWORD"
|
||||
label: "Password"
|
||||
description: "Administration password for the server"
|
||||
default: password
|
||||
required: true
|
||||
type: "password"
|
||||
- variable: "DISPLAY"
|
||||
label: "Display"
|
||||
description: "Enter the identifier for your XWindows display. This will usually be your workstation name or IP address, followed by :0"
|
||||
default: 1.2.3.4:0
|
||||
required: true
|
||||
type: "string"
|
||||
- variable: "NAME"
|
||||
label: "Player Name"
|
||||
description: "Name for the player's ship. This must be unique."
|
||||
default: player
|
||||
required: true
|
||||
type: "string"
|
||||
server:
|
||||
scale: 1
|
||||
client:
|
||||
scale: 1
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# XPilots
|
||||
|
||||
This creates an X-Windows base X-Pilots game, for testing X-Windows connectivity. To use this, you will need to have X-Windows installed on your workstation, and able to accept incoming connections from the Docker Hosts.
|
||||
|
||||
For the client, you need to specify the location of your X-Windows desktop, for example 1.2.3.4:0
|
||||
|
||||
You can add more players by just cloning the first player service, and giving it different DISPLAY and NAME environment variable settings.
|
||||
|
||||
Note that there are NO publicly exposed ports as it runs purely over the Rancher
|
||||
private network! If you want to make this available to external players, you
|
||||
need to expose the port 15345/udp from the Server container.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -0,0 +1,7 @@
|
||||
name: XPilot
|
||||
description: |
|
||||
XWindows multiplayer game, for testing.
|
||||
version: v0.1
|
||||
category: entertainment
|
||||
maintainer: Steve Shipway <s.shipway@auckland.ac.nz>
|
||||
|
||||
Reference in New Issue
Block a user