Finish setting center-of-rotation feature. Implement a Docker Container to build/server project #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR finishes up my earlier work on issue #82 and fixes issue #87. More importantly, there is an initial implementation of our next major feature: A Docker "standalone app" that can build and serve projects for a user. This is kinda like issue #84, although our recent meetings have changed the scope of it somewhat. I've copied the commit message for this change below:
This is the first crack at creating an easy-to-use "app" that can build
and run a browser instance just from project input data. It's not
fool-proof yet, but it's a strong foundation.
To run it:
- First build the docker image:
docker build -t 4dgbrunner .
- Then run with docker-compose
docker-compose run --rm -p 127.0.0.1:8000:8000 browser
This will "import" the test.01 project, and spin up an instance of the
browser on port 8000.
The important thing here is that, if this Docker image is built
and (eventually) published on DockerHub, users won't even need
this repository to browser their projects. They would only need
to assemble their project in a directory, then run docker-compose
(which can be wrapped in a simple script later).
You can try a bit of this now by moving to a totally different
directory after building the image, copying the 'projects/'
directory into your new directory, then running the docker-compose
command.
EDIT: Added a commit fixing issue #87