Skip to content

Commit

Permalink
Add inital devcontainer for blog and base
Browse files Browse the repository at this point in the history
  • Loading branch information
mads-hartmann committed Feb 4, 2024
1 parent 91a1a03 commit 682d661
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/blog.mads-hartmann.com/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/ruby:3.1
ADD Gemfile Gemfile.lock .
RUN bundle install
16 changes: 16 additions & 0 deletions .devcontainer/blog.mads-hartmann.com/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "blog.mads-hartmann.com",
"build": {
"dockerfile": "Dockerfile",
"context": "../../sites/blog.mads-hartmann.com"
},
"workspaceMount": "source=${localWorkspaceFolder}/sites/blog.mads-hartmann.com,target=/workspace,type=bind",
"workspaceFolder": "/workspace",
"postStartCommand": "bundle exec jekyll serve --watch --drafts --source src",
"portsAttributes": {
"4000": {
"label": "Jekyll",
"onAutoForward": "notify"
}
}
}
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "mads-hartmann.com",
"image": "mcr.microsoft.com/devcontainers/base:alpine"
}
2 changes: 1 addition & 1 deletion sites/blog.mads-hartmann.com/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem "jekyll", "~> 4.1.1"
gem "jekyll", "~> 4.3.3"
gem "jekyll-seo-tag", "~> 2.6"
gem 'jekyll-sitemap', "~> 1.4.0"
gem 'jekyll-feed', "~> 0.15.0"
Expand Down
58 changes: 31 additions & 27 deletions sites/blog.mads-hartmann.com/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,74 +1,78 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.1.10)
concurrent-ruby (1.2.3)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.15.5)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.25.2)
http_parser.rb (0.8.0)
i18n (1.10.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jekyll (4.1.1)
jekyll (4.3.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
mercenary (>= 0.3.6, < 0.5)
pathutil (~> 0.9)
rouge (~> 3.0)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 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)
kramdown (2.3.2)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.1)
liquid (4.0.4)
listen (3.8.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)
public_suffix (4.0.7)
rb-fsevent (0.11.1)
public_suffix (5.0.4)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.28.0)
rexml (3.2.6)
rouge (4.2.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.8.0)
webrick (1.7.0)
sass-embedded (1.70.0)
google-protobuf (~> 3.25)
rake (>= 13.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
unicode-display_width (2.5.0)
webrick (1.8.1)

PLATFORMS
ruby

DEPENDENCIES
jekyll (~> 4.1.1)
jekyll (~> 4.3.3)
jekyll-feed (~> 0.15.0)
jekyll-seo-tag (~> 2.6)
jekyll-sitemap (~> 1.4.0)
Expand Down

0 comments on commit 682d661

Please sign in to comment.