Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Basic Support for Docker Machine #60

Closed
wants to merge 2 commits into from

Conversation

dave-tucker
Copy link
Contributor

This PR adds basic support for Docker Machine

As Cuberite doesn't (yet) support dynamic reload of settings.ini, the machines that are available when Dockercraft is started are the only ones available...

We mount the users ~/.docker/machine/machines folder, iterate over it, find machines with an IP address and have a go at connecting to them. This is tested to work with Docker Machine 0.7.0

Full usage is covered in the README but the TL;DR is /worlds to see available worlds and /portal <world> to change worlds.

This work has exposed a race between the when the proxy is ready to send events and when the Docker plugin is ready to receive them. Hopefully this will be improved by #42

Depends On #59
Closes #49

Dave Tucker added 2 commits May 3, 2016 13:48
- Refactor proxy and setup to single `dockercraft` daemon
- Automatically download the latest Docker release, remove the Docker
  binary from the repo
- Use Golang 1.6
- Update to Docker 1.11.1 in the Dockerfile
- Dockerize all the testing
- Add test targets for checking our golang code
- Build and Serve targets for testing changes
- Address comments from go fmt and go lint
- Add simple circle.yml for CircleCI

Signed-off-by: Dave Tucker <dt@docker.com>
Signed-off-by: Dave Tucker <dt@docker.com>
@dave-tucker
Copy link
Contributor Author

Obligatory GIF demo
machine

@dave-tucker
Copy link
Contributor Author

The shakiness on switching worlds is due to Cuberite getting a list of containers when the player has changed worlds. This can go away once the aforementioned race is fixed as each world will continue to update in the background (i.e with no player logged in)

@djassain
Copy link

wow

@dave-tucker dave-tucker closed this Sep 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants