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

Provide a Docker image and instructions how to use it #8

Open
colindean opened this issue Jan 20, 2022 · 2 comments
Open

Provide a Docker image and instructions how to use it #8

colindean opened this issue Jan 20, 2022 · 2 comments
Milestone

Comments

@colindean
Copy link
Contributor

I don't do much Ruby these days but I've got a whole lot of projects I built 2010-2019 that use "the Ruby version as of the day I started" for the most part and I've only upgraded when necessary. Bad maintainer or busy maintainer, I don't know.

I'd love to be able to do

docker run --rm -it -e GITHUB_TOKEN="${GITHUB_TOKEN}" matheusrich/end_of_life:latest

and get a report. That could even turn into a cronjob on my containers server or a GitHub Action or something.

@MatheusRich
Copy link
Owner

MatheusRich commented Jan 20, 2022

Sounds good! My Docker skills are rusty, but I might take a stab at it.

@colindean
Copy link
Contributor Author

I've got it ~working with as little as

FROM ruby:3-alpine

RUN gem install end_of_life

CMD ["end_of_life"]

but #10 has to go through first because the JSON end of life data path isn't valid when installing from Rubygems, apparently.

Now, that Dockerfile would just install the latest from Rubygems, which would be OK if the steps before it pushed the gem. It's probably better to install the gem GHA just built with something like this:

FROM ruby:3-alpine

COPY ./end_of_life*.gem .

RUN gem install end_of_life*.gem && rm end_of_life*.gem

CMD ["end_of_life"]

https://github.com/marketplace/actions/build-and-push-docker-images is a starting point for that. I'm out of time for now!

@MatheusRich MatheusRich added this to the v0.3.0 milestone Jan 30, 2022
@MatheusRich MatheusRich modified the milestones: v0.3.0, v0.4.0 Feb 10, 2022
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

No branches or pull requests

2 participants