{"id":28217122,"url":"https://github.com/hellivan/docker-snapshot-image","last_synced_at":"2026-03-15T22:46:40.538Z","repository":{"id":14306363,"uuid":"76304240","full_name":"hellivan/docker-snapshot-image","owner":"hellivan","description":"CLI utiltiy for creating docker snapshot images from an existing Node.JS project","archived":false,"fork":false,"pushed_at":"2023-11-11T01:49:28.000Z","size":421,"stargazers_count":2,"open_issues_count":19,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-08-09T04:45:35.938Z","etag":null,"topics":["ci","docker","docker-images","docker-snapshot-images","git","npm","package-json","snapshot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hellivan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-12-12T23:22:58.000Z","updated_at":"2022-01-27T14:33:55.000Z","dependencies_parsed_at":"2023-11-03T03:00:25.713Z","dependency_job_id":null,"html_url":"https://github.com/hellivan/docker-snapshot-image","commit_stats":{"total_commits":95,"total_committers":6,"mean_commits":"15.833333333333334","dds":0.3789473684210526,"last_synced_commit":"3bf8e2136b8d87f1fa3c26c9009582923ce020f2"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/hellivan/docker-snapshot-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellivan%2Fdocker-snapshot-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellivan%2Fdocker-snapshot-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellivan%2Fdocker-snapshot-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellivan%2Fdocker-snapshot-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellivan","download_url":"https://codeload.github.com/hellivan/docker-snapshot-image/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellivan%2Fdocker-snapshot-image/sbom","scorecard":{"id":460245,"data":{"date":"2025-08-11","repo":{"name":"github.com/hellivan/docker-snapshot-image","commit":"3bf8e2136b8d87f1fa3c26c9009582923ce020f2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"34 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj9c-8jmm-8c52","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T10:55:49.079Z","repository_id":14306363,"created_at":"2025-08-19T10:55:49.079Z","updated_at":"2025-08-19T10:55:49.079Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30553533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"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":["ci","docker","docker-images","docker-snapshot-images","git","npm","package-json","snapshot"],"created_at":"2025-05-18T00:11:19.176Z","updated_at":"2026-03-15T22:46:40.533Z","avatar_url":"https://github.com/hellivan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-snapshot-image\n\n[![Build Status](https://img.shields.io/circleci/build/github/hellivan/docker-snapshot-image/master?logo=circleci\u0026style=flat-square)](https://circleci.com/gh/hellivan/docker-snapshot-image)\n[![Code Coverage](https://img.shields.io/codecov/c/github/hellivan/docker-snapshot-image/master?logo=codecov\u0026style=flat-square)](https://codecov.io/gh/hellivan/docker-snapshot-image)\n[![MIT License](https://img.shields.io/npm/l/docker-snapshot-image?style=flat-square)](LICENSE)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square)](https://renovatebot.com/)\n[![NPM Package](https://img.shields.io/npm/v/docker-snapshot-image?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/docker-snapshot-image)\n[![NPM Package Downloads](https://img.shields.io/npm/dm/docker-snapshot-image?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/docker-snapshot-image)\n\nCommand line utiltiy that allows to easily create docker snapshot-images from an exising node.js project. The resulting images by default will be tagged as follows: `{project-name}:{project-version}-{git-short-hash}`\n\n## Prerequisites\n\nSince this application makes use of git and docker, the two applications must be preinstalled on the system. Additionally, the directory in which the application is executed, must contain a valid **package.json** and **Dockerfile**.\n\n## Usage\n\nYou can use this utilty by installing it globally and executing it in your project's root directory:\n\n```\nnpm i -g  docker-snapshot-image\ncd /path/to/your/project\ndocker-snapshot-image\n```\n\nFor a project with the following package.json:\n\n```\n{\n  \"name\": \"my-project\",\n  \"version\": \"1.1.0\",\n  ...\n}\n```\n\nexecuting the command would result in an image with a tag of the follwoing shape `my-project:1.1.0-f941929`. The hash appended to the version of the images always matches the short-version of the project's current git commit.\n\nFor advanced usage, command line flags can be used to change the default behavoir of the application:\n\n| Flag                       | Description                                                                                                                                                                        |\n| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| --fixed-tag \u003ctag\u003e          | Additionally tag the image with the specified tag (could be used to always add _latest_ tag to image)                                                                              |\n| --auto-tag-format \u003cformat\u003e | Format of the automatically generated tag.\u003cbr\u003eAvailable variable are `{branch-name}`, `{pkg-version}` and `{commit-hash}`. \u003cbr\u003eThe default format is `{pkg-version}-{commit-hash}` |\n| --image-name \u003cname\u003e        | Use the specified custom name for the image                                                                                                                                        |\n| --no-auto                  | Do not create the image with the automatic snapshot-tag specified in auto-tag-format                                                                                               |\n\nHowever, for a fully detailed description of all flags that can be used, see the application's usage information (`docker-snapshot-image --help`).\n\n## NOTES\n\nFor branchname determination we are generally using the `git rev-parse --abbrev-ref HEAD` command. However, since some CI environments (e.g. Jenkins)\nare not actually checking out the actual branch but rather the pushed commit itself, we are optionally checking for environment varable `BRANCH_NAME`\nbefore starting branchname determination using `git rev-parse`.\n\n## Environment variables\n\nThe application reads the following environment variables:\n\n-   `CONTAINER_IMAGE_REGISTRY_PASS`\n-   `CONTAINER_IMAGE_REGISTRY_USER`\n-   `CONTAINER_IMAGE_REGISTRY_REPO`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellivan%2Fdocker-snapshot-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellivan%2Fdocker-snapshot-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellivan%2Fdocker-snapshot-image/lists"}