-
Notifications
You must be signed in to change notification settings - Fork 15
Improve scripts, and add python 2 & 3 support to execution #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the contribution! Am reviewing. |
|
I've tested this in Python 2 and 3. Seems to work in v3. In Python 2.7.14 I get the following error: May I suggest making something like the following change? |
|
Will do thanks @robb-romans |
|
@robb-romans Change made please review |
|
Thanks @edwardjrp! PYVER is now working for me in v2 and v3. I cloned https://github.com/rackerlabs/docs-dedicated-networking and added a I ma be missing a step or not testing correctly, though. Should it be able to find your |
|
@robb-romans i had that image as private in my repo, its public now. Is there another repo to host this that is the prefered one? |
script/add-raml
Outdated
| -e VERBOSE=${VERBOSE:-} \ | ||
| -e CONTENT_ROOT=${1} \ | ||
| -v ${CONTAINER_ROOT}:${CONTAINER_ROOT} \ | ||
| # raml-preparer:dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As written this commented line breaks the command (line does not continue). Please remove or move to the end of the statement.
|
OK, thanks! I got further after pulling your image. See comment inline about removing a line. The source I tested is RAML 0.8, so it failed. NB: |
|
I'm not an expert on RAML best practices. Looks like 1.0 was announced (https://raml.org/blogs/raml-10-here) in late 2015. Perhaps we could convert all our existing 0.8 docs to 1.0. @nimbinatus thoughts? |
|
Yes, supporting 1.0 moving forward would be the ideal state. The RAML preparer as it stands now was only supposed to support 1.0+ after discussion with some different teams; that decision may have to be revisited as needed when new projects adopt the platform. I will be doing PR reviews here and on the RAML preparer today; sorry for the delay in getting to them. Images for deconst are currently hosted at quay.io; the preparer will migrate there when the code is in a state to release. |
nimbinatus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small wording nits, but this matches what I've been testing with in terms of code :) Thanks!
| -e CONTENT_ROOT=${1} \ | ||
| -v ${CONTAINER_ROOT}:${CONTAINER_ROOT} \ | ||
| # raml-preparer:dev | ||
| docker.io/edwardjrp/raml-preparer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we're all settled with the RAML preparer, we'll want to use the quay.io/deconst namespace to host the image. This works for now, though :)
script/add-raml
Outdated
| echo "CONTENT_URL | ${CONTENT_URL}" | ||
| echo "COMPOSE_NETWORK_NAME | ${COMPOSE_NETWORK_NAME}" | ||
|
|
||
| # Run the Jekyll builder (from a Docker container) on the provided content repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: s/Jekyll/RAML
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
script/add-raml
Outdated
| Usage: script/add-raml [--stage|-s] <path> | ||
|
|
||
| --stage|-s - Submit content to the staging endpoint. | ||
| path - Path to a Raml file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path is to the content repository hosting RAML files, actually. So:
path - Path to a RAML content repositoryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
|
Re: the findAll traceback: I'm running into the same problem, but I'm thinking it's a code issue at first glance, though it could be a package change. Looking at it in deconst/deconst-raml-preparer#1 |
|
@robb-romans in the error mentioned above i dont see that the repository you are passing has As to support latest version i just added a ticket to keep track and make updates on a separate PR. |
|
I think this is all correct, but we're currently blocked by deconst/deconst-raml-preparer#1, which is blocked by deconst/deconst-raml-preparer#2. Working on getting those merged today so this one can be merged. |
nimbinatus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this; it looks like the error has more to do with the code in the preparer than this change.
No description provided.