Task based docker#21
Open
renoirb wants to merge 18 commits into
Open
Conversation
…ld without SSH keys
Build steps, to support either native through Makefile, and/or Dockerfile
* Should run bikeshed, phantomjs * Removed use of rsync, it’ll sync to data/publish/ directory * Renamed anonymous js functions to help debugging * npmrc to contextualize node_modules, nothing global plz! * .gitignore to ignore bikeshed clone (either within Docker or not) * Change location of bikeshed directory *outside* of data Includes work on: * webspecs#19 Forgot npm install in make deps * webplatform/ops#153 Signed-off-by: Renoir Boulanger <renoir@w3.org>
Author
Screenshots!make docker-bashYou can initialize an empty workspace using make docker-runRun a container, and send a hook call On another terminal tab, I issued; |
6 tasks
Author
|
Wrote instructions on how to run a prebuilt instance locally, like we’ll do in production. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Hi again @darobin
Here’s the new Docker container for Publican.
Differences:
data/publish/directlydata/(what publican writes), andspecs-data/(for Bikeshed) as a Docker volume so that the Docker container remains untouched and what it generates remains outside of it.Known issues
How to run
The WebPlatform specs.production.wpdn VM has everything needed to run. But if you want to run it locally, here are the steps. Also you might want to read the DOCKER.md file.
On a server that has Docker installed.
Pull the new image
Create a few directories
Make sure directory
data/is owned byuid=999(app-user)andgid=999(app-user). The group and user names doesn’t matter, its their ids that matter.Create config file in
data/config.json/opt/bikeshed/bikeshed.py/srv/webplatform/specs/Run container
Run it on WebPlatform infrastructure!
The container is ready in a dedicated VM.
Run containers like this;
Run from within the container
Run an instance and send a hook call
from another terminal, issue a cURL command
you should see;
See also