Merge pull request #224 from safing/feature/compatibility-problems

Fixing Docker/jekyll problems
This commit is contained in:
David 2022-10-12 12:06:35 +00:00 committed by GitHub
commit c41be91aeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 35 deletions

View file

@ -11,4 +11,4 @@ group :jekyll_plugins do
gem 'jekyll-redirect-from' gem 'jekyll-redirect-from'
end end
gem 'therubyracer' gem 'webrick'

View file

@ -1,37 +1,37 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
addressable (2.8.0) addressable (2.8.1)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0) colorator (1.1.0)
concurrent-ruby (1.1.6) concurrent-ruby (1.1.10)
cssminify2 (2.0.1) cssminify2 (2.0.1)
em-websocket (0.5.1) em-websocket (0.5.3)
eventmachine (>= 0.12.9) eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0) http_parser.rb (~> 0)
eventmachine (1.2.7) eventmachine (1.2.7)
execjs (2.7.0) execjs (2.8.1)
ffi (1.13.1) ffi (1.15.5)
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
htmlcompressor (0.4.0) htmlcompressor (0.4.0)
http_parser.rb (0.6.0) http_parser.rb (0.8.0)
i18n (1.8.5) i18n (1.12.0)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
jekyll (4.1.1) jekyll (4.2.2)
addressable (~> 2.4) addressable (~> 2.4)
colorator (~> 1.0) colorator (~> 1.0)
em-websocket (~> 0.5) em-websocket (~> 0.5)
i18n (~> 1.0) i18n (~> 1.0)
jekyll-sass-converter (~> 2.0) jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0) jekyll-watch (~> 2.0)
kramdown (~> 2.1) kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0) kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0) liquid (~> 4.0)
mercenary (~> 0.4.0) mercenary (~> 0.4.0)
pathutil (~> 0.9) pathutil (~> 0.9)
rouge (~> 3.0) rouge (~> 3.0)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
terminal-table (~> 1.8) terminal-table (~> 2.0)
jekyll-minifier (0.1.10) jekyll-minifier (0.1.10)
cssminify2 (~> 2.0) cssminify2 (~> 2.0)
htmlcompressor (~> 0.4) htmlcompressor (~> 0.4)
@ -41,43 +41,39 @@ GEM
jekyll-paginate (1.1.0) jekyll-paginate (1.1.0)
jekyll-redirect-from (0.16.0) jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0) jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (2.1.0) jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0) sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1) jekyll-watch (2.2.1)
listen (~> 3.0) listen (~> 3.0)
json (2.3.1) json (2.6.2)
json-minify (0.0.3) json-minify (0.0.3)
json (> 0) json (> 0)
kramdown (2.3.1) kramdown (2.4.0)
rexml rexml
kramdown-parser-gfm (1.1.0) kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0) kramdown (~> 2.0)
libv8 (3.16.14.19)
liquid (4.0.3) liquid (4.0.3)
listen (3.2.1) listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0) mercenary (0.4.0)
pathutil (0.16.2) pathutil (0.16.2)
forwardable-extended (~> 2.6) forwardable-extended (~> 2.6)
public_suffix (4.0.6) public_suffix (5.0.0)
rb-fsevent (0.10.4) rb-fsevent (0.11.2)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
ref (2.0.0)
rexml (3.2.5) rexml (3.2.5)
rouge (3.21.0) rouge (3.30.0)
safe_yaml (1.0.5) safe_yaml (1.0.5)
sassc (2.4.0) sassc (2.4.0)
ffi (~> 1.9) ffi (~> 1.9)
terminal-table (1.8.0) terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1) unicode-display_width (~> 1.1, >= 1.1.1)
therubyracer (0.12.3)
libv8 (~> 3.16.14.15)
ref
uglifier (4.2.0) uglifier (4.2.0)
execjs (>= 0.3.0, < 3) execjs (>= 0.3.0, < 3)
unicode-display_width (1.7.0) unicode-display_width (1.8.0)
webrick (1.7.0)
PLATFORMS PLATFORMS
ruby ruby
@ -87,7 +83,7 @@ DEPENDENCIES
jekyll-minifier jekyll-minifier
jekyll-paginate jekyll-paginate
jekyll-redirect-from jekyll-redirect-from
therubyracer webrick
BUNDLED WITH BUNDLED WITH
2.1.4 2.1.4

View file

@ -4,15 +4,21 @@
### Run Safing locally: ### Run Safing locally:
1. [Install docker](https://www.docker.com/get-started) 1. [Install Docker Desktop](https://www.docker.com/get-started)
2. Run 2. In Docker Desktop settings untick `Use Docker Compose V2` (We currently only support V1)
``` 3. Go to `Web` dir
docker-compose up
```
3. Access the local version at http://localhost:4000 #### Known Bug In Docker: https://github.com/docker/for-mac/issues/6467
if you have problems with **chown permissions**, then you will need todo run this `rm -rf _site .sass-cache .jekyll-metadata .jekyll-cache` before `docker-compose up` every time.
4. Run `docker-compose up`
5. Access the local version at http://localhost:4000
### Auto refresh not working?!
You might be blocking javascript. `livereload` injects javascript to auto reload the page.
## Supporters ## Supporters

View file

@ -1,7 +1,7 @@
# to start the server just run # to start the server just run
# docker-compose up # docker-compose up
jekyll: jekyll:
image: jekyll/jekyll image: jekyll/jekyll:3
command: jekyll serve --watch --incremental --livereload --future command: jekyll serve --watch --incremental --livereload --future
ports: ports:
- 4000:4000 - 4000:4000