{"id":21213990,"url":"https://github.com/cruxstack/terraform-docker-artifact-packager","last_synced_at":"2026-05-20T09:31:23.210Z","repository":{"id":179669411,"uuid":"663944965","full_name":"cruxstack/terraform-docker-artifact-packager","owner":"cruxstack","description":"Terraform Module to build extractable artifacts using docker without polluting host environment. ","archived":false,"fork":false,"pushed_at":"2026-03-20T13:28:27.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-21T05:56:59.191Z","etag":null,"topics":["artifact","artifact-tools","artifacts","build","build-tool","cloudposse","docker","hcl2","package","packager","sweetops","terraform","terraform-module","utility"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/cruxstack/artifact-packager/docker/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cruxstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-07-08T14:00:09.000Z","updated_at":"2026-03-20T13:28:21.000Z","dependencies_parsed_at":"2024-11-20T21:40:02.732Z","dependency_job_id":null,"html_url":"https://github.com/cruxstack/terraform-docker-artifact-packager","commit_stats":null,"previous_names":["sgtoj/terraform-docker-artifact-packager","cruxstack/terraform-docker-artifact-packager"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/cruxstack/terraform-docker-artifact-packager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-docker-artifact-packager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-docker-artifact-packager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-docker-artifact-packager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-docker-artifact-packager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cruxstack","download_url":"https://codeload.github.com/cruxstack/terraform-docker-artifact-packager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruxstack%2Fterraform-docker-artifact-packager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["artifact","artifact-tools","artifacts","build","build-tool","cloudposse","docker","hcl2","package","packager","sweetops","terraform","terraform-module","utility"],"created_at":"2024-11-20T21:25:26.297Z","updated_at":"2026-05-20T09:31:23.180Z","avatar_url":"https://github.com/cruxstack.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Module: Docker Artifact Packager\n\nThis Terraform module provides a reusable, customizable solution for building\nDocker images and extracting artifacts from them. This utility module builds\nartifacts with docker to prevent polluting host environment.\n\n## Features\n\n- Builds Docker images using provided build context and arguments\n- Creates a unique tag for each Docker image built\n- Generates a zip archive of the specified directory\n- Copies an artifact from the Docker container to a specified path\n- Supports both Linux and Windows Docker containers\n\n## Usage\n\n```hcl\nmodule \"artifact_packager\" {\n  source  = \"cruxstack/artifact-packager/docker\"\n  version = \"x.x.x\"\n\n  docker_build_context = \"${path.module}/examples/aws-lambda-fn/fixures/echo-app\"\n  docker_build_target  = \"package\"\n  artifact_src_path    = \"/tmp/package.zip\"\n}\n```\n\n## Inputs\n\nIn addition to the variables documented below, this module includes several\nother optional variables (e.g., `name`, `tags`, etc.) provided by the\n`cloudposse/label/null` module. Please refer to the [`cloudposse/label` documentation](https://registry.terraform.io/modules/cloudposse/label/null/latest) for more details on these variables.\n\n\n| Name                     | Description                                                                         |     Type      | Default | Required |\n|--------------------------|-------------------------------------------------------------------------------------|:-------------:|:-------:|:--------:|\n| `docker_build_context`   | The context to use when building the Docker image.                                  |   `string`    |   n/a   |   yes    |\n| `docker_build_target`    | The target to use when building the Docker image.                                   |   `string`    |   n/a   |   yes    |\n| `docker_build_args`      | Additional arguments to pass to Docker during the build process.                    | `map(string)` |  `{}`   |    no    |\n| `artifact_dst_directory` | The destination directory on the host machine to which the artifact will be copied. |   `string`    |   \"\"    |    no    |\n| `artifact_src_path`      | The path in the Docker container from which to copy the artifact.                   |   `string`    |   n/a   |   yes    |\n| `artifact_src_type`      | \"The type of artifact to copy. Accepts 'zip' or 'directory'.\"                       |   `string`    |  `zip`  |    no    |\n| `force_rebuild_id`       | A unique identifier that, when changed, will force the Docker image to be rebuilt.  |   `string`    |   \"\"    |    no    |\n| `os_compatibility`       | The operating system of Terrafrom environment. Accepts 'unix' or 'windows'.         |   `string`    | `unix`  |    no    |\n\n## Outputs\n\n| Name                    | Description                                |\n|-------------------------|--------------------------------------------|\n| `artifact_package_path` | The local path where the artifact located. |\n\n## Contributing\n\nWe welcome contributions to this project. For information on setting up a\ndevelopment environment and how to make a contribution, see [CONTRIBUTING](./CONTRIBUTING.md)\ndocumentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruxstack%2Fterraform-docker-artifact-packager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcruxstack%2Fterraform-docker-artifact-packager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruxstack%2Fterraform-docker-artifact-packager/lists"}