{"id":27629500,"url":"https://github.com/jimschubert/rewrite-docker","last_synced_at":"2025-04-23T15:26:37.091Z","repository":{"id":285758960,"uuid":"958955745","full_name":"jimschubert/rewrite-docker","owner":"jimschubert","description":"A pet project for playing around with Docker parsing in OpenRewrite","archived":false,"fork":false,"pushed_at":"2025-04-17T03:21:43.000Z","size":336,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T17:34:58.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimschubert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2025-04-02T03:15:30.000Z","updated_at":"2025-04-17T03:21:46.000Z","dependencies_parsed_at":"2025-04-02T14:47:37.649Z","dependency_job_id":"b28ed527-bf44-495c-91f7-9f22ea0403fe","html_url":"https://github.com/jimschubert/rewrite-docker","commit_stats":null,"previous_names":["jimschubert/rewrite-docker"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Frewrite-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Frewrite-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Frewrite-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Frewrite-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimschubert","download_url":"https://codeload.github.com/jimschubert/rewrite-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250459064,"owners_count":21434016,"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":[],"created_at":"2025-04-23T15:26:36.145Z","updated_at":"2025-04-23T15:26:37.054Z","avatar_url":"https://github.com/jimschubert.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rewrite-Docker\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Java Version](https://img.shields.io/badge/Java-17-blue.svg)](https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/downloads-list.html)\n[![Build](https://github.com/jimschubert/rewrite-docker/actions/workflows/build.yml/badge.svg)](https://github.com/jimschubert/rewrite-docker/actions/workflows/build.yml)\n\nA library that extends [OpenRewrite](https://github.com/openrewrite/rewrite) to provide Dockerfile parsing, analysis, and transformation capabilities.\n\n## Project Status\n\n⚠️ **Work in Progress** ⚠️\n\nThis is a pet project currently under development. It does **not** work well enough for production use yet. There is no guarantee that it will be completed or maintained long-term.\n\n## Overview\n\nRewrite-Docker aims to bring the power of OpenRewrite's AST-based transformation to Dockerfiles. This enables programmatic analysis and refactoring of Docker configuration files.\n\n## Features\n\n* Dockerfile AST (Abstract Syntax Tree) parsing\n* Tree representation of Dockerfile instructions\n* Visitor pattern for navigating and transforming Dockerfiles\n\n## Getting Started\n\n### Prerequisites\n\n* Java 17 or higher\n* Gradle\n\n### Installation\n\nThe library is available via JitPack and can be added to your project as a dependency.\n\n#### Gradle\n\n```groovy\nrepositories {\n    maven { url 'https://jitpack.io' }\n}\ndependencies {\n    implementation 'com.github.jimschubert:rewrite-docker:1.0.4'\n}\n```\n\n#### Maven\n\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejitpack.io\u003c/id\u003e\n        \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.jimschubert\u003c/groupId\u003e\n    \u003cartifactId\u003erewrite-docker\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Building\n\nTo build the project, you can use Gradle. Make sure you have Java 17 or higher installed.\n\n```bash\n./gradlew :spotlessApply build\n```\n\n## Usage Examples\n_Coming soon_\n\n## Development Roadmap\n- [ ] Add parser error handling for invalid syntaxes\n- [ ] Develop common Dockerfile recipes\n- [ ] Add documentation and usage examples\n\n## Contributing\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the [Apache License, Version 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Frewrite-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimschubert%2Frewrite-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Frewrite-docker/lists"}