-
Notifications
You must be signed in to change notification settings - Fork 508
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
Docker based development for Jekyll #7273
Conversation
Signed-off-by: Eric Pugh <[email protected]>
Love this @epugh! Let me know when it's ready for review. |
…5782 (opensearch-project#7113) * adding top ten security best practices Signed-off-by: [email protected] <[email protected]> * changing nav order Signed-off-by: [email protected] <[email protected]> * adding to best practices Signed-off-by: AntonEliatra <[email protected]> * adding to best practices Signed-off-by: AntonEliatra <[email protected]> * adding to best practices Signed-off-by: AntonEliatra <[email protected]> * adding bonus tip Signed-off-by: [email protected] <[email protected]> * updates to best practices Signed-off-by: [email protected] <[email protected]> * integrating Darshits suggestions for improvement and reviewdog fixes Signed-off-by: [email protected] <[email protected]> * review suggestions to grammer Signed-off-by: [email protected] <[email protected]> * review suggestions to grammer Signed-off-by: [email protected] <[email protected]> * review suggestions to grammer Signed-off-by: [email protected] <[email protected]> * review suggestions to grammer Signed-off-by: [email protected] <[email protected]> * review suggestions to grammer Signed-off-by: [email protected] <[email protected]> * reviewdog update Signed-off-by: [email protected] <[email protected]> * Apply suggestions from code review Co-authored-by: Naarcha-AWS <[email protected]> Signed-off-by: leanneeliatra <[email protected]> * reviewdog updates Signed-off-by: [email protected] <[email protected]> * Update _security/configuration/best-practices.md Signed-off-by: Naarcha-AWS <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: leanneeliatra <[email protected]> * Update best-practices.md Signed-off-by: AntonEliatra <[email protected]> * Update best-practices.md Signed-off-by: AntonEliatra <[email protected]> * Add editorial comment Signed-off-by: Naarcha-AWS <[email protected]> * Update best-practices.md Signed-off-by: AntonEliatra <[email protected]> * Update _security/configuration/best-practices.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: AntonEliatra <[email protected]> * Update best-practices.md Signed-off-by: AntonEliatra <[email protected]> * Update best-practices.md Signed-off-by: Naarcha-AWS <[email protected]> * Apply suggestions from code review Signed-off-by: Naarcha-AWS <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> --------- Signed-off-by: [email protected] <[email protected]> Signed-off-by: AntonEliatra <[email protected]> Signed-off-by: leanneeliatra <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> Co-authored-by: AntonEliatra <[email protected]> Co-authored-by: Naarcha-AWS <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
* Explain k in approximate k-NN Signed-off-by: Fanit Kolchina <[email protected]> * Additional info Signed-off-by: Fanit Kolchina <[email protected]> * Delete engine row in table Signed-off-by: Fanit Kolchina <[email protected]> * Add a clarification to the table Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _search-plugins/knn/approximate-knn.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> --------- Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
…project#7277) Signed-off-by: Fanit Kolchina <[email protected]>
Ping |
Hi all.. So I paired on this with @dtaivpp and I think I have something working. One potentially controversial decision was to lock the version of Ruby to |
@epugh was the --net=host the solution for your use case? You think we should document that pattern? |
I actually didn't a get chance to try that one..... |
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.
Works on Linux but I had a few comments to make it more usable.
|
||
# Enable the link checker | ||
ENV JEKYLL_LINK_CHECKER="internal" | ||
|
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.
Should we move the host and jekyll_env to an env variable? This way we can allow the users to more easily set variables.
ENV JEKYLL_ENV=development
ENV HOST=127.0.0.1
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.
Probably! I haven't actually used ENV much in the past, so it felt "new" to me... ! Please make the change!
Dockerfile
Outdated
# Enable the link checker | ||
ENV JEKYLL_LINK_CHECKER="internal" | ||
|
||
CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0", "--port", "4000", "--incremental", "--livereload", "--trace"] |
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.
The other thing is maybe at the end of this we add config files for overwriting the site.url.
--config _config.yml,_config_docker.yml
When I was testing I found the only way to access the site off my machine was using a _config_docker.yml
with the following contents and the JEKYLL_ENV=production.
url: "http://10.0.5.93:4000"
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.
I love it!
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.
should we add a 1 liner description in the CONTRIBUTING.md file ? "To run this on your droplet..."???
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.
100% I'll add that along with a bit more about the pattern.
1. Environment now is defaulted to run on localhost 2. Added env var's to run in a hosted manner 3. Added documentation to run a demo server hosted Signed-off-by: David Tippett <[email protected]>
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.
@kolchfa-aws I reviewed these and confirmed the steps outlined work and are documented correctly!
Test on Windows was successful. |
@epugh: Once you take this out of draft mode, I'll give the language and formatting a proper review. Ping me when you're ready. |
@Naarcha-AWS it's no longer draft! THanks for testing on windows! |
Thanks for validating the steps, @dtaivpp! Much appreciated. Let's get a review from @AMoo-Miki too (specifically fixing the Ruby version). |
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 changes suggested make the formatting more in line with the next section.
@epugh: Per the advice of @AMoo-Miki, the |
@hdhalter I think that comes down to the preferences of the project. It's pretty standard to standardize on a single version of ruby. That way changes that are made in one persons environment should be guaranteed to work in production with the same ruby version. @AMoo-Miki I'm curious what advantage there is to allowing users to use any ruby version they'd like. That feels like a risk |
Eric is on vacation for a few weeks, so I accepted your changes, Nate. Co-authored-by: Naarcha-AWS <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Just went to add some docs and ran
message. The big change that impacts non Docker users in this set up is that we check into the repo If that is too much, I could look at having Docker install ruby and the gems at start up time. That would make firing up the docker image a lot slower, but might be a more gentle introduction of Docker into the tool chain.... Thoughts @AMoo-Miki ? |
This was solved in #8220! Thanks @hainenber for getting this problem solved! |
Description
Frustrated with Ruby install issues? Using Docker already? This let's you contribute documentation improvements without installing Ruby locally.
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.