{"id":21155000,"url":"https://github.com/forge/docker-addon","last_synced_at":"2025-03-14T15:15:06.676Z","repository":{"id":28886674,"uuid":"32411310","full_name":"forge/docker-addon","owner":"forge","description":"A Docker addon for JBoss Forge 2.x","archived":false,"fork":false,"pushed_at":"2015-08-31T13:14:31.000Z","size":296,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-21T08:44:31.325Z","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":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forge.png","metadata":{"files":{"readme":"README.asciidoc","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}},"created_at":"2015-03-17T18:10:22.000Z","updated_at":"2020-11-10T06:39:54.000Z","dependencies_parsed_at":"2022-09-03T07:41:00.009Z","dependency_job_id":null,"html_url":"https://github.com/forge/docker-addon","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge%2Fdocker-addon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge%2Fdocker-addon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge%2Fdocker-addon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forge%2Fdocker-addon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forge","download_url":"https://codeload.github.com/forge/docker-addon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243597840,"owners_count":20316844,"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":"2024-11-20T11:13:55.298Z","updated_at":"2025-03-14T15:15:06.654Z","avatar_url":"https://github.com/forge.png","language":"Java","readme":"### Docker Addon for JBoss Forge 2.\n:idprefix: id_ \n\nimage:https://travis-ci.org/forge/docker-addon.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/forge/docker-addon\"]\n\nThe *Docker Addon* provides support for Docker technologies in Forge projects.This addon *exports services* for use in other addons.\n\n=== Installation\n\nFrom Forge CLI:\n\n[source,shell]\n----\naddon-install-from-git --url https://github.com/forge/docker-addon.git\n----\n\n== Features\n* *Dockerfile Linter*: A rule based 'linter' for https://docs.docker.com/reference/builder/[Dockerfiles] .The linter rules can be used  to check file syntax as well as arbitrary semantic and best practice attributes determined by the rule file writer.\nRule files are written in YAML. The rules are implemented using regular expressions, run on one instruction of the Dockerfile at a time. Inspiration for the linter has been taken from https://github.com/projectatomic/dockerfile_lint[dockerfile_lint].\n\n\n* *Dockerfile Lint command*: \nJust type the following command if you're in shell.It will run the Dockerfile linter on the input Dockerfile using the Rulefile. \n+\n[source,shell]\n----\ndockerfile-lint —-dockerfile [Dockerfile] —-rulefile [Rulefile]\n----\n+\n\n* *DockerfileResource for Dockerfiles*: \nThe Docker Addon has to provide APIs and services for interacting with real and virtual Dockerfile Resources, typically for the purpose of reading and manipulating Dockerfiles. \nThe addon uses https://github.com/shrinkwrap/descriptors-docker[Shrinkwrap Descriptors Docker], that provide reading,parsing,manipulating\nand writing Dockerfile commands to real and virtual Dockerfile resources provided by the addon.\n+\n[source,java]\n----\n@Inject private ResourceFactory factory;\nDockerFileResource resource = factory.createResource(new File(“Dockerfile”)).reify(DockerFileResource.class);\nDockerDescriptor resourceDescriptor = resource.getDockerDescriptor();\n----\n+\n* *Facets implementation*:\nDocker addon adds a `DockerFacet` which is entry point for Docker addon API.\n\n* *Dockerfile Create Command*:\nThis command prepares the project for functioning in Docker context.\n+\n[source,shell]\n----\ndockerfile-create\n----\n+\nIt installs the `DockerFacet` in your new project.\n\n* *Dockerfile Setup Command*:\nThis command builds and packages your project and then generates the corresponding Dockerfile for deployment to docker containers.\n+\n[source,shell]\n----\ndockerfile-setup\n----\n+\nSample Dockerfile Format created by this command:\n+\n[source,text]\n----\nFROM jboss/wildfly\nADD target/your-awesome-app.war /opt/jboss/wildfly/standalone/deployments/\n----\n+\n\nThe Dockerfile generated deploys your app to a JBoss Wildfly Container.\n+\n* *Docker Command support over the Forge CLI*: DockerCommand supports running Docker CLI commands on the Forge CLI. \n+  \nEg: \"docker images\" command shows your Docker images on the Forge CLI just as it works on a usual CLI.\n+\nYou can run your regular Docker commands like \"docker ps\" now on the Forge CLI.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforge%2Fdocker-addon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforge%2Fdocker-addon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforge%2Fdocker-addon/lists"}