-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update Dockerfile with ruby:3.3.4-alpine3.20 #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the docker image!
-
I was able to build and confirm that the new image works just as well as the old one as far as I can tell.
# build the image with the existing <repo>/<name> but with a # testing tag docker build -t hackforlaops/ghpages:testing .
-
I can confirm that the ruby version and the github-pages gem version are both updated.
docker run -it hackforlaops/ghpages:testing sh # inside the container # check ruby version ruby --version # output ruby 3.3.4 ... # check gem version gem list | grep github-pages # output github-pages (232) ...
@fyliu Thank you for approving this PR. I don’t have rights to merge it either as @DanielRidge or as @roslynwythe. So that might be a discussion to have with the ops team and with Bonnie. But let’s first discuss testing. In my fork https://github.com/roslynwythe/ghpages-docker I created a new branch But to run that I would need the secrets with the dockerhub credentials. Or should I create a new dockerhub account for this purpose? Please confirm the advice of the ops team re: testing |
I don't remember how, but I actually have write permission on this repo and can merge it. How would you like to merge? My own preference is "rebase and merge" to keep a linear history. No need to squash since your changes are clean and small already. I recommend creating a personal docker hub account for testing. I didn't until I had to work on one of these docker image projects. Here's some random docker hub notes I made while working on a similar project in case they're useful. The token and password are interchangeable in the cli when it prompts for I'm not actually part of the ops team so I'm just speaking for myself. |
Hi @fyliu. This is @roslynwythe again. Thank you for your help! From my fork I modified the "build and push to docker hub" workflow and ran it so it uploaded to a new tag: hackforlaops/ghpages:testing to dockerhub and we will let you know when testing of the new image is complete. It doesn't seem like the workflow will be triggered by merge, rather by push, so I'm curious how that will be done. |
Hi @fyliu for testing the new image locally I have created a branch off gh-pages and updated |
Hi @roslynwythe. I don't think you need to create a Generally, I think |
@roslynwythe I think merging this PR should create a Were you working on another workflow file to push a testing image on PR approval? I remember looking up how to do that but helpful commandsI didn't find these commands in the wiki documentation but I want to add them somewhere For images: # build testing image
docker build . -t hackforlaops/ghpages:testing
# shell into a new container from image and remove container on exit
docker run --rm -it hackforlaops/ghpages:testing sh For alpine package management (in an alpine container): # update package information
apk update
# installed package version
apk list -I openssl
# available package version
apk info openssl
# install/upgrade package
apk add openssl
# remove package
apk del openssl
|
# Install bash and su-exec. These are required by the shell scripts we copied over right after starting build stage 2. | |
RUN apk --no-cache add \ | |
bash \ | |
su-exec | |
or to remove it: apk del openssl
around the same place in the Dockerfile
.
I'm not sure if the website will still work okay without it since it's not copied over from the build
stage. The build
stage installs libressl
, which something might be using or not. libressl
adoption seems to have gone down since 2020, so there might not be something that requires it anymore. I removed libressl
and the openssl
from the base image in all build stages and the build went through and runs fine locally. But I'm not using ssl.
@roslynwythe I attended the ops meeting and they didn't have anything to add, so they asked me to merge this. Thank you for updating the docker image! |
@roslynwythe hmm... the build and push actions are failing. Bad Credentials for GitHub? I'm on a cellphone and it's hard to go get the message to paste here. |
@roslynwythe It looks like the PAT for the Daniel Ridge bot may have expired or rotated without updating the secret in this repo. I filed an issue for Ops to look at it. |
fixes hackforla/ops#142
Changes