Skip to content

Commit

Permalink
Add devcontainer for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianthoma committed Oct 31, 2024
1 parent 46cfdf7 commit c25b8e7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll
{
"name": "Jekyll",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "jekyll --version"

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ The Website is built with Jekyll and Github Pages and can also be run in develop

In development mode you will have live-reload functionality and automatic rebuilds of content when you change it. Sadly changes to the configration files will not rebuild the whole site, just restart the docker container to accomplish that.

Alternatively there is a devcontainer that automatically starts when you open the Project in vscode. To run the development server inside the devcontainer use the following command:

bundle exec jekyll serve --livereload --watch --incremental --host 0.0.0.0 --port "8080"

---
**NOTE**

Expand All @@ -17,8 +21,6 @@ https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-a

---



# Base Theme
We used Minimal Mistakes as the theme for Jekyll to get a good base start, see their starter Repos for more information:
- [Minimal Mistakes Starter Template](https://github.com/mmistakes/mm-github-pages-starter/)
Expand Down

0 comments on commit c25b8e7

Please sign in to comment.