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
Add a SVGO Docker image for Simpleicons formatting #1532
Add a SVGO Docker image for Simpleicons formatting #1532
Conversation
I'm not necessarily against supporting this, however I have two doubts:
To circumvent my first point I'm thinking of instead adding the As for the Ps. I'm assuming PoC means Proof of Concept? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sorry, missed the updates
Yes, it would make sense. Also, it could be just put in a separate repository so that there is separate versioning for it. Can help with maintaining it, because I would be interested to convert this image into a GitHub Actions step at some point
Yes. Mostly for the review by maintainers to see whether there is value in that |
A GitHub action serving what purpose? For CI tests or for end-users somehow? |
Update the Dockerfile to create a docker image that is generally applicable to run NPM commands, including but not limited to: - npm run test - npm run svgo - npm run lint Also updated the .dockerignore file to exclude: - The node_modules folder - Common Jekyll folders/files - Files generated by the build script The reason for choosing the alpine docker image (rather than a node docker image) is that the CLI out of the box is better.
Given the original was a POC and contributed almost a year ago, I took the liberty of updating this PR to our needs. Let me know if you, @oleg-nenashev, or anyone else has any feedback on my solution (as I'm somewhat of a newbie when it comes to Docker) The In addition, I added a description for how to run a Jekyll server for this project using a Docker container in the updated Contributing Guidelines. This is unrelated to the |
Update the Dockerfile based on the original work in 3299338 by re-adding an ENTRYPOINT to the Dockerfile. This ENTRYPOINT makes it extremely easy to spin up a quick Docker container to optimize a single SVG (much simpler than my copy-in -> optimize -> copy-out approach). The description for how to use the Docker image to run other NPM scripts has been updated accordingly. The provided command overrides the above ENTRYPOINT by simple starting a shell so the user can interact with the project.
Not familiar with Docker but the updates to the guidelines look good to me 👍 |
Given the enormous delay this PR has already seen and given that I merely added a few things to the original PR, I will be merging this now. If someone wants to improve upon this feel free to open a new PR for that. If anyone still wants to share some feedback on the final Dockerfile, feel free to do so here 🙂 |
I slightly changed the focus a while ago, but I can help with maintenance of the images if needed |
Just a PoC for the discussion. This is a Docker image I used to render the image according to the feedback in #1518 . If somebody is interested, I could work a bit on this image to provide a tool for other image contributors who are not very familiar with SVG formats.
What could be added:
CC @ericcornelissen