safing / web

https://safing.io
Creative Commons Attribution Share Alike 4.0 International
25 stars 15 forks source link

Fixing Docker/jekyll problems #224

Closed LukeSeers closed 2 years ago

LukeSeers commented 2 years ago

When trying to set up the Web repo, I've ran into so many weird problems.

Problem 1 The new Docker Compose V2 (enabled by default now) changes the layout of the docker-compose.yml thus creating breaking issues.

Solution (Problem 1) The fix for now is that I have disabled the Docker Compose V2 and I've also added it to the README.md to reflected these changes.

Problem 2 The gem therubyracer was not supported in the latest ruby version that is shipped with the latest official jekyll docker image.

Solution In the end after talking / troubleshooting with Daniel. He suggest to just remove gem therubyracer.

Problem 3 I kept getting weird problems that I wasn't able to figure out with something relating toBuilder honestly I have no clue..

Solution When pulling the web repo it gets the latest docker image and I had weird issues with it. So I ended up with downgrading to a older version of the official jekyll docker image 4.2.2 to fix these problems.

Problem 4 Weird chown permissions when wanting to change files. This is a known issue in the latest docker-desktop-mac https://github.com/docker/for-mac/issues/6467

Solution you will need to run this rm -rf _site .sass-cache .jekyll-metadata .jekyll-cache before docker-compose up every time.