generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 619
Docker based development for Jekyll #7273
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
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ac23b17
Docker based development for Jekyll
epugh a82d4ce
Merge branch 'main' into docker_based_development
epugh f0c57ca
Security best practices - 10 points to consider - #5782 (#7113)
leanneeliatra d3f7cbb
Explain k in approximate k-NN (#7194)
kolchfa-aws 150dfa7
Add version to PR template (#7276)
kolchfa-aws d39929d
Remove formatting from front matter in foreach processor (#7277)
kolchfa-aws acb79c0
Use a specific Ruby and store the lock file
epugh 7c5a31e
be specific on which Ruby we support
epugh 7660cfe
Merge branch 'main' into docker_based_development
epugh 63b0ad6
Restore the running of the linkchecker
epugh f5ddfdc
since I decided to keep the Gemfile.lock, remove comment
epugh add6da4
not convinced that we need the .ruby-version checked in
epugh 69cae5b
document how you know the server has started
epugh fa9fdb7
Added a few handy little features:
dtaivpp d571df1
I exist to make vale happy
epugh efc35be
Apply suggestions from code review
hdhalter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ _site | |
.sass-cache | ||
.jekyll-metadata | ||
.DS_Store | ||
Gemfile.lock | ||
.idea | ||
.jekyll-cache | ||
.ruby-version |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ruby:3.2.4 | ||
|
||
WORKDIR /app | ||
|
||
COPY Gemfile Gemfile.lock ./ | ||
|
||
RUN bundle install | ||
|
||
# Expose the default Jekyll port | ||
EXPOSE 4000 | ||
|
||
# Enable the link checker | ||
ENV JEKYLL_LINK_CHECKER="internal" | ||
ENV JEKYLL_ENV=development | ||
ENV HOST=127.0.0.1 | ||
|
||
CMD ["bundle", "exec", "jekyll", "serve", "--host", "$HOST", "--port", "4000", "--incremental", "--livereload", "--trace", "--config", "_config.yml,_config_docker.yml"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
addressable (2.8.6) | ||
public_suffix (>= 2.0.2, < 6.0) | ||
bigdecimal (3.1.8) | ||
colorator (1.1.0) | ||
concurrent-ruby (1.3.1) | ||
em-websocket (0.5.3) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0) | ||
ethon (0.16.0) | ||
ffi (>= 1.15.0) | ||
eventmachine (1.2.7) | ||
ffi (1.16.3) | ||
forwardable-extended (2.6.0) | ||
google-protobuf (4.27.0) | ||
bigdecimal | ||
rake (>= 13) | ||
google-protobuf (4.27.0-aarch64-linux) | ||
bigdecimal | ||
rake (>= 13) | ||
google-protobuf (4.27.0-arm64-darwin) | ||
bigdecimal | ||
rake (>= 13) | ||
google-protobuf (4.27.0-x86-linux) | ||
bigdecimal | ||
rake (>= 13) | ||
google-protobuf (4.27.0-x86_64-darwin) | ||
bigdecimal | ||
rake (>= 13) | ||
google-protobuf (4.27.0-x86_64-linux) | ||
bigdecimal | ||
rake (>= 13) | ||
http_parser.rb (0.8.0) | ||
i18n (1.14.5) | ||
concurrent-ruby (~> 1.0) | ||
jekyll (4.3.3) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
em-websocket (~> 0.5) | ||
i18n (~> 1.0) | ||
jekyll-sass-converter (>= 2.0, < 4.0) | ||
jekyll-watch (~> 2.0) | ||
kramdown (~> 2.3, >= 2.3.1) | ||
kramdown-parser-gfm (~> 1.0) | ||
liquid (~> 4.0) | ||
mercenary (>= 0.3.6, < 0.5) | ||
pathutil (~> 0.9) | ||
rouge (>= 3.0, < 5.0) | ||
safe_yaml (~> 1.0) | ||
terminal-table (>= 1.8, < 4.0) | ||
webrick (~> 1.7) | ||
jekyll-last-modified-at (1.3.0) | ||
jekyll (>= 3.7, < 5.0) | ||
posix-spawn (~> 0.3.9) | ||
jekyll-redirect-from (0.16.0) | ||
jekyll (>= 3.3, < 5.0) | ||
jekyll-remote-theme (0.4.3) | ||
addressable (~> 2.0) | ||
jekyll (>= 3.5, < 5.0) | ||
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) | ||
rubyzip (>= 1.3.0, < 3.0) | ||
jekyll-sass-converter (3.0.0) | ||
sass-embedded (~> 1.54) | ||
jekyll-seo-tag (2.8.0) | ||
jekyll (>= 3.8, < 5.0) | ||
jekyll-sitemap (1.4.0) | ||
jekyll (>= 3.7, < 5.0) | ||
jekyll-watch (2.2.1) | ||
listen (~> 3.0) | ||
just-the-docs (0.3.3) | ||
jekyll (>= 3.8.5) | ||
jekyll-seo-tag (~> 2.0) | ||
rake (>= 12.3.1, < 13.1.0) | ||
kramdown (2.4.0) | ||
rexml | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
liquid (4.0.4) | ||
listen (3.9.0) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
mercenary (0.4.0) | ||
pathutil (0.16.2) | ||
forwardable-extended (~> 2.6) | ||
posix-spawn (0.3.15) | ||
public_suffix (5.0.5) | ||
rake (13.0.6) | ||
rb-fsevent (0.11.2) | ||
rb-inotify (0.11.1) | ||
ffi (~> 1.0) | ||
rexml (3.2.8) | ||
strscan (>= 3.0.9) | ||
rouge (4.2.1) | ||
ruby-enum (1.0.0) | ||
ruby-link-checker (0.2.0) | ||
rubyzip (2.3.2) | ||
safe_yaml (1.0.5) | ||
sass-embedded (1.77.3) | ||
google-protobuf (>= 3.25, < 5.0) | ||
rake (>= 13) | ||
sass-embedded (1.77.3-aarch64-linux-android) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-aarch64-linux-gnu) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-aarch64-linux-musl) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-aarch64-mingw-ucrt) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-arm-linux-androideabi) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-arm-linux-gnueabihf) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-arm-linux-musleabihf) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-arm64-darwin) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-riscv64-linux-android) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-riscv64-linux-gnu) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-riscv64-linux-musl) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86-cygwin) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86-linux-android) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86-linux-gnu) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86-linux-musl) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86-mingw-ucrt) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86_64-cygwin) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86_64-darwin) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86_64-linux-android) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86_64-linux-gnu) | ||
google-protobuf (>= 3.25, < 5.0) | ||
sass-embedded (1.77.3-x86_64-linux-musl) | ||
google-protobuf (>= 3.25, < 5.0) | ||
strscan (3.1.0) | ||
terminal-table (3.0.2) | ||
unicode-display_width (>= 1.1.1, < 3) | ||
typhoeus (1.4.1) | ||
ethon (>= 0.9.0) | ||
unicode-display_width (2.5.0) | ||
webrick (1.8.1) | ||
|
||
PLATFORMS | ||
aarch64-linux | ||
aarch64-linux-android | ||
aarch64-linux-gnu | ||
aarch64-linux-musl | ||
aarch64-mingw-ucrt | ||
arm-linux-androideabi | ||
arm-linux-gnueabihf | ||
arm-linux-musleabihf | ||
arm64-darwin | ||
riscv64-linux-android | ||
riscv64-linux-gnu | ||
riscv64-linux-musl | ||
ruby | ||
x86-cygwin | ||
x86-linux | ||
x86-linux-android | ||
x86-linux-gnu | ||
x86-linux-musl | ||
x86-mingw-ucrt | ||
x86_64-cygwin | ||
x86_64-darwin | ||
x86_64-linux | ||
x86_64-linux-android | ||
x86_64-linux-gnu | ||
x86_64-linux-musl | ||
|
||
DEPENDENCIES | ||
jekyll (~> 4.3.2) | ||
jekyll-last-modified-at | ||
jekyll-redirect-from (~> 0.16) | ||
jekyll-remote-theme (~> 0.4) | ||
jekyll-sitemap | ||
just-the-docs (~> 0.3.3) | ||
ruby-enum | ||
ruby-link-checker | ||
typhoeus | ||
tzinfo-data | ||
webrick (~> 1.7) | ||
|
||
RUBY VERSION | ||
ruby 3.2.4p170 | ||
|
||
BUNDLED WITH | ||
2.5.11 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
url: "http://127.0.0.1:4000" |
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.
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.
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!