intuit/auto

Package auto as a docker container

philnichol opened this issue · 3 comments

Is your feature request related to a problem? Please describe.

Since auto will often get used in CI, and nowadays a lot of CI is just a series of containers (github Actions, gitlab, etc), it would be nice if I could just use an official intuit/auto container, instead of either having to build my own, or having to download the binary each time. I think would enable more people to use it.

Describe the solution you'd like

auto packaged as a docker image, so I can just run something like below instead of having to install it (or the equivalent in github actions, gitlab).

docker run -it intuit/auto:vX.X.X pr-check

A super basic (and poor) working example:

FROM node:alpine

COPY . .

RUN yarn && yarn build && chmod +x /packages/cli/dist/bin/auto.js

ENTRYPOINT ["/packages/cli/dist/bin/auto.js"]

Describe alternatives you've considered

Additional context
Thanks in advance for reading this, and thanks for this project, it's awesome!

FYI for GitHub actions there is official https://github.com/auto-it/setup-auto

I'm not a docker expert so I'm not the best person to write this. If you want to contribute a solution for this or some docs I'd be open to it. With free docker orgs going away though I don't see us paying for that

@hipstersmoothie that's a fair point on the free docker orgs. TBH ATM I won't have time to contribute much so happy to close this until it becomes a stronger requirement.
Thanks both for the responses.