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

Official Docker Image #143

Closed
Fleshgrinder opened this issue Dec 15, 2019 · 3 comments
Closed

Official Docker Image #143

Fleshgrinder opened this issue Dec 15, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@Fleshgrinder
Copy link

Would it be possible that we get an official Docker image? You could host it on GitHub like the pre-compiled binaries. Having a Docker image would simplify the usage with automation (e.g. CI).

Fleshgrinder added a commit to mre/the-coding-interview that referenced this issue Dec 15, 2019
I used `scc` to generate the statistics. I also asked for an official Docker image in boyter/scc#143 so that we might be able to automatically generate the statistics in the future every time something is merged to master. Should be easy with GitHub actions.
Fleshgrinder added a commit to mre/the-coding-interview that referenced this issue Dec 17, 2019
I used `scc` to generate the statistics. I also asked for an official Docker image in boyter/scc#143 so that we might be able to automatically generate the statistics in the future every time something is merged to master. Should be easy with GitHub actions.
@boyter boyter added the enhancement New feature or request label Jan 5, 2020
@boyter
Copy link
Owner

boyter commented Jan 5, 2020

Yep a docker image sounds like a good idea. I will have a look to see what this involves.

@boyter boyter added this to To do in Release 3.0.0 Sep 7, 2020
@boyter boyter removed this from To do in Release 3.0.0 Feb 23, 2021
@Potherca
Copy link

Potherca commented Jun 1, 2022

Based on the work of gitlab-ci-utils/docker-scc (MIT License), I came up with this:

# hadolint ignore=DL3007
FROM golang:latest as scc-get

ENV GOOS=linux \
GOARCH=amd64 \
CGO_ENABLED=0

ARG VERSION=v3.0.0
RUN git clone --branch $VERSION --depth 1 https://github.com/boyter/scc
WORKDIR /go/scc
RUN go build -ldflags="-s -w"

FROM scratch
COPY --from=scc-get /go/scc/scc /scc
ENTRYPOINT ["/scc"]

which is basically an empty docker image with only the scc binary in it.

I guess the majority of the work that needs to be doen for this issue is setting up all of the right GitHub Action, correct?

@boyter
Copy link
Owner

boyter commented Jun 2, 2022

setting up all of the right GitHub Action

That would be it as far as I can see.

I really need to block out some time to get all of this done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants