Skip to content
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

Please Update #5

Open
tomohulk opened this issue Jan 28, 2024 · 2 comments
Open

Please Update #5

tomohulk opened this issue Jan 28, 2024 · 2 comments
Assignees

Comments

@tomohulk
Copy link

tomohulk commented Jan 28, 2024

First off, thanks for this, I appreciate the time and effort into sharing a "how to" for people to follow. With that being said, I spent a lot of time on this, and did a lot of troubleshooting for it to never work.

First, I'm guessing when you made this the Docker image tag you used was the latest for Ruby 2.7, however, there are newer versions now then the latest supported by GH pages, which is 2.7.4. So you need to update that tag to use 2.7.4-alpine3.14.

Next, there doesn't really seem to be a version of bundler that is even compatible with Ruby > 3.0.0. it tosses and error even trying to install bundler, but it recommends you use gem install bundler -v 2.4.22.

If I use the steps from the other open issue on this repo, I still can't get past the ssas dependency stuff.

I did see that you mentioned you where going to make an updated video in issue #4, but I am unable to find that.

Again, thanks for taking the time, but it maybe worth updating the README of this repo to say something like "NO LONGER WORKS AS DESCRIBED" or something similar. Im guessing there is ways to make this work, im just not skilled enough in Ruby or Docker to find the solution.

@tomohulk
Copy link
Author

FWIW, I did finally get this working, there was another issue with the DevConatiner that needed to be over come.

So, for anyone following along with this tutorial, and who is developing for GH Pages, this is what you need for your docker file (at least at the time of this writing):

# Create a Jekyll container from a Ruby Alpine image

# At a minimum, use Ruby 2.5 or later
FROM ruby:2.7.8-alpine3.16

# Add Jekyll dependencies to Alpine
RUN apk update
RUN apk add --no-cache build-base gcc cmake git

# Update the Ruby bundler and install Jekyll

Technically speaking the version of Ruby in ruby:2.7.8-alpine3.16 is too new. the latest version supported of ruby in GH Pages is 3.7.4. I think GH Pages needs to get moving on updating to a newer supported version of ruby.

@BillRaymond
Copy link
Owner

@tomohulk The reason I stopped using Alpine was because at the time it made updates that were breaking Ruby and Jekyll, so I moved on and only use Ubuntu now. Here is the link to the new multi-part Gist:
https://gist.github.com/BillRaymond/db761d6b53dc4a237b095819d33c7332

Here is the replacement video:
https://www.youtube.com/watch?v=zijOXpZzdvs

If you want, you can just replace the contents of your current Dockerfile with this new one and rebuild the container in VSC:
https://gist.github.com/BillRaymond/db761d6b53dc4a237b095819d33c7332#file-github-pages-jekyll-dockerfile

Don't forget to go to your Jekyll folder, open a shell in VSC, and type:

bundle install
bundle update

If you have yet to crate a Jekyll site yet, here is a little script I created to run after your Docker container is setup. It configures Git, creates a Jekyll Site, and runs the bundle commands I just shared above:
https://gist.github.com/BillRaymond/db761d6b53dc4a237b095819d33c7332#file-run-once-after-dockerfile-sh

In the meantime, I will take a look at your updates and assuming it tests out without issues, I will happily update the Gist.

@BillRaymond BillRaymond self-assigned this Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants