{"id":20535951,"url":"https://github.com/cyb3r-jak3/html5validator-docker","last_synced_at":"2025-07-12T12:05:31.455Z","repository":{"id":37950947,"uuid":"214256711","full_name":"Cyb3r-Jak3/html5validator-docker","owner":"Cyb3r-Jak3","description":"A Docker image for HTML and CSS validation. ","archived":false,"fork":false,"pushed_at":"2024-12-09T07:30:54.000Z","size":263,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T21:22:32.196Z","etag":null,"topics":["docker","docker-container","docker-image","dockerfile","gitlab-ci","gitlab-pipelines","html5validator"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/cyb3rjak3/html5validator","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cyb3r-Jak3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.MD","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-10T18:28:37.000Z","updated_at":"2025-03-28T04:29:06.000Z","dependencies_parsed_at":"2023-12-29T23:31:25.771Z","dependency_job_id":"07b9dfc8-18a3-486d-bdc6-4add6a3b1cff","html_url":"https://github.com/Cyb3r-Jak3/html5validator-docker","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/Cyb3r-Jak3/html5validator-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Fhtml5validator-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Fhtml5validator-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Fhtml5validator-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Fhtml5validator-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyb3r-Jak3","download_url":"https://codeload.github.com/Cyb3r-Jak3/html5validator-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyb3r-Jak3%2Fhtml5validator-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264987011,"owners_count":23693752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-container","docker-image","dockerfile","gitlab-ci","gitlab-pipelines","html5validator"],"created_at":"2024-11-16T00:34:48.727Z","updated_at":"2025-07-12T12:05:31.426Z","avatar_url":"https://github.com/Cyb3r-Jak3.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML5Validator\r\n\r\n[![Docker Pulls](https://img.shields.io/docker/pulls/cyb3rjak3/html5validator)](https://hub.docker.com/r/cyb3rjak3/html5validator)\r\n\r\n[![Publish](https://github.com/Cyb3r-Jak3/html5validator-docker/actions/workflows/publish.yml/badge.svg)](https://github.com/Cyb3r-Jak3/html5validator-docker/actions/workflows/publish.yml) [![Test Build](https://github.com/Cyb3r-Jak3/html5validator-docker/actions/workflows/test_build.yml/badge.svg)](https://github.com/Cyb3r-Jak3/html5validator-docker/actions/workflows/test_build.yml)\r\n\r\nThis is a docker image made to test HTML code. I developed it for [my website](https://www.jwhite.network) using GitLab pipelines. This will work for any sort of pipeline solution. It setups up a container that has [html5validator](https://github.com/svenkreiss/html5validator) installed, which saves time with the testing process.\r\n\r\nThere are images available through GitHub, Docker Hub or GitLab.\r\n\r\n## To use\r\n\r\nFirst figure out the version you want then checkout out the [source](#sources)\r\n\r\n### GitLab Pipeline\r\n\r\nUsing the source of your choosing you will want something like:\r\n\r\n```yaml\r\nhtml_test:\r\n  stage: test\r\n  image: cyb3rjak3/html5validator:latest-alpine\r\n  script:\r\n    - html5validator --root public/ --also-check-css --log INFO\r\n```\r\n\r\nWhich is used by this [project](.gitlab-ci.yml)\r\n\r\n### GitHub Action\r\n\r\nFor GitHub Actions, please use the action that I have built here: [HTML5 Validator](https://github.com/marketplace/actions/html5-validator)\r\nThe action is built using this image\r\n\r\n[Source Repo](https://github.com/Cyb3r-Jak3/html5validator-action)\r\n\r\n### Local\r\n\r\n```bash\r\n# Pull the image of your choosing. Only has to be done once\r\ndocker pull cyb3rjak3/html5validator:latest-alpine\r\n\r\n# If your code is in a relative directory called `public`\r\ndocker run --rm -i -v $(pwd):/mnt -w /mnt cyb3rjak3/html5validator:latest-alpine html5validator --root public\r\n```\r\n\r\n## Sources\r\n\r\nYou can pull the image from either Docker Hub, GitHub, or GitLab. Currently the default images are based off of `python:3.9-alpine` there are images available using `python:3.9-slim`.\r\n\r\nTo use the slim based images add `-slim` to the tag you are using, i.e. `cyb3rjak3/html5validator:latest` becomes `cyb3rjak3/html5validator:latest-slim`.\r\n\r\n|              | [Docker](https://hub.docker.com/r/cyb3rjak3/html5validator) | [GitHub](https://github.com/Cyb3r-Jak3/html5validator-docker/pkgs/container/html5validator) | [Gitlab](https://gitlab.com/Cyb3r-Jak3/html5validator-docker/container_registry/1945095) |\r\n|--------------|-------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\r\n| pypi         | cyb3rjak3/html5validator:pypi                               | ghcr.io/cyb3rjak3/html5validator:pypi                                                       | registry.gitlab.com/cyb3r-jak3/html5validator-docker:pypi                                |\r\n| source       | cyb3rjak3/html5validator:source                             | ghcr.io/cyb3rjak3/html5validator:source                                                     | registry.gitlab.com/cyb3r-jak3/html5validator-docker:source                              |\r\n| experimental | cyb3rjak3/html5validator:experimental                       | ghcr.io/cyb3rjak3/html5validator:experimental                                               | registry.gitlab.com/cyb3r-jak3/html5validator-docker:experimental                        |\r\n\r\n## Tags\r\n\r\nThere are currently three tags for this image: `source`, `pypi`, and `experimental`. The source tag involves building html5validator from [source](https://github.com/svenkreiss/html5validator), the PyPI installs the packaged version, and the experimental branch builds from my fork of [html5validator](https://github.com/Cyb3r-Jak3/html5validator). The PyPi tag is more stable than the source branch, thus it is the latest tag.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyb3r-jak3%2Fhtml5validator-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyb3r-jak3%2Fhtml5validator-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyb3r-jak3%2Fhtml5validator-docker/lists"}