switched port field to a JSONField
adds a helper function to display server port mapping in admin
launching a container will map the ports appropriately
Instead of typing json to map ports we have a widget
replaced by such text fields. where one can + button to add or
- to remove
i.e.
[container_port/proto]:[host_port]
At first port was an IntegerField.
Hence i added a manual migration which is the latest one
to get them to be default:port(old value)
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
Have cleaned up redundant logic used for testing
it ruined my life today.
Port mapping works but it's simply picking it up from
a single integer field. We might have to expand on this
logic for multi port mappings per instance.
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
Create views and templates to render the views for a list of games
And for it to show if server is running for the game selected.
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
sync_status: fixing path to podman.sock
fix several strings and func names with 'docker' in them
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
while it works to launch, stop and remove containers,
fixing strings and func and var names is yet to be done
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
Connected to hld2m-server successfully. Hardcoded `network_mode='host'`
Which isn't viable moving forwards.
Current Status:
Frontend : Active Servers show
Backend: Have configured admin.py utils.py and models.py
to grant us the ability to launch a docker image with a command
and tested client connection.
Server Online status works
launch, stop, remove (with force stop) works.
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
Base Functionality added. Adding a Server with
the image port ip and other params specified
will spawn a container and one can manage the
lifecycle in the admin panel and the game server
detail view updates based on container status.
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>