{"id":17817143,"url":"https://github.com/030/yaam","last_synced_at":"2025-03-18T03:31:33.752Z","repository":{"id":45910780,"uuid":"497007659","full_name":"030/yaam","owner":"030","description":"Yet Another Artifact Manager (YAAM) is an artifact repository that is capable of storing and preserving artifacts.","archived":false,"fork":false,"pushed_at":"2024-06-22T14:22:52.000Z","size":251,"stargazers_count":3,"open_issues_count":25,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T16:40:41.589Z","etag":null,"topics":["artifact-repository","artifactory","artifactory-oss","cache","golang","gradle","maven","nexus3","npm","verdaccio"],"latest_commit_sha":null,"homepage":"","language":"Go","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/030.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":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-27T13:29:11.000Z","updated_at":"2024-10-14T14:38:33.000Z","dependencies_parsed_at":"2024-06-21T10:53:27.380Z","dependency_job_id":null,"html_url":"https://github.com/030/yaam","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.1875,"last_synced_commit":"5a8627c30e2e00fa3fda6110f1f68209b2a0574d"},"previous_names":["030/yoam"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fyaam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fyaam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fyaam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/030%2Fyaam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/030","download_url":"https://codeload.github.com/030/yaam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244150637,"owners_count":20406620,"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":["artifact-repository","artifactory","artifactory-oss","cache","golang","gradle","maven","nexus3","npm","verdaccio"],"created_at":"2024-10-27T16:40:55.421Z","updated_at":"2025-03-18T03:31:33.195Z","avatar_url":"https://github.com/030.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YAAM\n\n[![CI](https://github.com/030/yaam/workflows/Go/badge.svg?event=push)](https://github.com/030/yaam/actions?query=workflow%3AGo)\n[![GoDoc Widget]][godoc]\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/030/yaam?logo=go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/030/yaam)](https://goreportcard.com/report/github.com/030/yaam)\n[![StackOverflow SE Questions](https://img.shields.io/stackexchange/stackoverflow/t/yaam.svg?logo=stackoverflow)](https://stackoverflow.com/tags/yaam)\n[![DevOps SE Questions](https://img.shields.io/stackexchange/devops/t/yaam.svg?logo=stackexchange)](https://devops.stackexchange.com/tags/yaam)\n[![ServerFault SE Questions](https://img.shields.io/stackexchange/serverfault/t/yaam.svg?logo=serverfault)](https://serverfault.com/tags/yaam)\n[![Docker Pulls](https://img.shields.io/docker/pulls/utrecht/yaam?logo=docker\u0026logoColor=white)](https://hub.docker.com/r/utrecht/yaam)\n![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/utrecht/yaam?logo=docker\u0026logoColor=white\u0026sort=semver)\n![Issues](https://img.shields.io/github/issues-raw/030/yaam.svg)\n![Pull requests](https://img.shields.io/github/issues-pr-raw/030/yaam.svg)\n![Total downloads](https://img.shields.io/github/downloads/030/yaam/total.svg)\n![GitHub forks](https://img.shields.io/github/forks/030/yaam?label=fork\u0026style=plastic)\n![GitHub watchers](https://img.shields.io/github/watchers/030/yaam?style=plastic)\n![GitHub stars](https://img.shields.io/github/stars/030/yaam?style=plastic)\n![License](https://img.shields.io/github/license/030/yaam.svg)\n![Repository Size](https://img.shields.io/github/repo-size/030/yaam.svg)\n![Contributors](https://img.shields.io/github/contributors/030/yaam.svg)\n![Commit activity](https://img.shields.io/github/commit-activity/m/030/yaam.svg)\n![Last commit](https://img.shields.io/github/last-commit/030/yaam.svg)\n![Release date](https://img.shields.io/github/release-date/030/yaam.svg)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/030/yaam?logo=github\u0026sort=semver)](https://github.com/030/yaam/releases/latest)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=030_yaam\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=030_yaam)\n[![codecov](https://codecov.io/gh/030/yaam/branch/main/graph/badge.svg)](https://codecov.io/gh/030/yaam)\n[![GolangCI](https://golangci.com/badges/github.com/golangci/golangci-web.svg)](https://golangci.com/r/github.com/030/yaam)\n[![Chocolatey](https://img.shields.io/chocolatey/dt/yaam)](https://chocolatey.org/packages/yaam)\n[![yaam](https://snapcraft.io//yaam/badge.svg)](https://snapcraft.io/yaam)\n[![codebeat badge](https://codebeat.co/badges/f4aa5086-a4d5-41cd-893a-5da816ee9107)](https://codebeat.co/projects/github-com-030-yaam-main)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n[godoc]: https://godoc.org/github.com/030/yaam\n[godoc widget]: https://godoc.org/github.com/030/yaam?status.svg\n\nAlthough there are many artifact managers, like Artifactory, Nexus3 and\nVerdaccio, they are either monoliths, consume a lot of resources\n(memory and CPU), lack Infrastructure as Code (IaC) or do not support all kind\nof artifact types. Yet Another Artifact Manager (YAAM):\n\n- is an artifact manager like Artifactory, Nexus3 or Verdaccio.\n- enforces IaC.\n- has no UI.\n- does not have a database.\n- scales horizontally.\n- supports downloading and publication of Apt, Generic, Maven and NPM\n  artefacts, preserves NPM and Maven packages from public repositories and\n  unifies Maven repositories.\n\n## Quickstart\n\nCreate a directory and change the permissions to ensure that YAAM can store\nartifacts:\n\n```bash\nmkdir ~/.yaam/repositories\nsudo chown 9999 -R ~/.yaam/repositories\n```\n\nConfigure YAAM by creating a `~/.yaam/config.yml` with the following content:\n\n```bash\n---\ncaches:\n  apt:\n    3rdparty-ubuntu-nl-archive:\n      url: http://nl.archive.ubuntu.com/ubuntu/\n  maven:\n    3rdparty-maven:\n      url: https://repo.maven.apache.org/maven2/\n    3rdparty-maven-gradle-plugins:\n      url: https://plugins.gradle.org/m2/\n    3rdparty-maven-spring:\n      url: https://repo.spring.io/release/\n    other-nexus-repo-releases:\n      url: https://some-nexus/repository/some-repo/\n      user: some-user\n      pass: some-pass\n  npm:\n    3rdparty-npm:\n      url: https://registry.npmjs.org/\ngroups:\n  maven:\n    hello:\n      - maven/releases\n      - maven/3rdparty-maven\n      - maven/3rdparty-maven-gradle-plugins\n      - maven/3rdparty-maven-spring\npublications:\n  generic:\n    - something\n  maven:\n    - releases\n  npm:\n    - 3rdparty-npm\n```\n\nStart YAAM:\n\n```bash\ndocker run \\\n  -e YAAM_LOG_LEVEL=trace \\\n  -e YAAM_USER=hello \\\n  -e YAAM_PASS=world \\\n  --rm \\\n  --name=yaam \\\n  -it \\\n  -v /home/${USER}/.yaam:/opt/yaam/.yaam \\\n  -p 25213:25213 utrecht/yaam:v0.5.4\n```\n\nOnce YAAM has been started, configure a project to ensure that artifacts will\nbe downloaded from this artifact manager.\n\n### Apt\n\nsudo vim /etc/apt/auth.conf.d/hello.conf\n\n```bash\nmachine http://localhost\nlogin hello\npassword world\n```\n\nsudo vim /etc/apt/sources.list\n\n```bash\ndeb http://localhost:25213/apt/3rdparty-ubuntu-nl-archive/ focal main restricted\n```\n\nPreserve the artifacts:\n\n```bash\nsudo apt-get update\n```\n\n### Generic\n\nUpload:\n\n```bash\ncurl -X POST -u hello:world \\\nhttp://yaam.some-domain/generic/something/world4.iso \\\n--data-binary @/home/${USER}/Downloads/ubuntu-22.04.1-desktop-amd64.iso\n```\n\nTroubleshooting:\n\n```bash\n413 Request Entity Too Large\n```\n\nadd:\n\n```bash\ndata:\n  proxy-body-size: 5G\n```\n\nand restart the controller pod.\n\nVerify in the `/etc/nginx/nginx.conf` file that the `client_max_body_size` has\nbeen increased to 5G.\n\nDownload:\n\n```bash\ncurl -u hello:world http://yaam.some-domain/generic/something/world6.iso \\\n-o /tmp/world6.iso\n```\n\n### Gradle\n\nAdjust the `build.gradle` and/or `settings.gradle`:\n\n```bash\nrepositories {\n  maven {\n    allowInsecureProtocol true\n    url 'http://localhost:25213/maven/releases/'\n    authentication {\n      basic(BasicAuthentication)\n    }\n    credentials {\n      username \"hello\"\n      password \"world\"\n    }\n  }\n  maven {\n    allowInsecureProtocol true\n    url 'http://localhost:25213/maven/3rdparty-maven/'\n    authentication {\n      basic(BasicAuthentication)\n    }\n    credentials {\n      username \"hello\"\n      password \"world\"\n    }\n  }\n  maven {\n    allowInsecureProtocol true\n    url 'http://localhost:25213/maven/3rdparty-maven-gradle-plugins/'\n    authentication {\n      basic(BasicAuthentication)\n    }\n    credentials {\n      username \"hello\"\n      password \"world\"\n    }\n  }\n}\n```\n\nPublish:\n\n```bash\npublishing {\n  publications {\n    mavenJava(MavenPublication) {\n      versionMapping {\n        usage('java-api') {\n          fromResolutionOf('runtimeClasspath')\n        }\n        usage('java-runtime') {\n          fromResolutionResult()\n        }\n      }\n    }\n  }\n\n  repositories {\n    maven {\n        allowInsecureProtocol true\n        url 'http://localhost:25213/maven/releases/'\n        authentication {\n          basic(BasicAuthentication)\n        }\n        credentials {\n          username \"hello\"\n          password \"world\"\n        }\n    }\n  }\n}\n```\n\nPreserve the artifacts:\n\n```bash\n./gradlew clean\n```\n\nor publish them:\n\n```bash\n./gradlew publish\n```\n\n### NPM\n\nCreate a `.npmrc` file in the directory of a particular NPM project:\n\n```bash\nregistry=http://localhost:25213/npm/3rdparty-npm/\nalways-auth=true\n_auth=aGVsbG86d29ybGQ=\ncache=/tmp/some-yaam-repo/npm/cache20220914120431999\n```\n\nNote: the `_auth` key should be populated with the output of:\n`echo -n 'someuser:somepass' | openssl base64`.\n\n```bash\nnpm i -d\n```\n\n## Run\n\nNext to docker, one could also use a binary or K8s or OpenShift to run YAAM:\n\n- [Binary.](docs/start/BINARY.md)\n- [K8s/OpenShift.](docs/start/K8SOPENSHIFT.md)\n\n## Other\n\n- [Background.](docs/other/BACKGROUND.md)\n- [Maven unify.](docs/other/MAVEN.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F030%2Fyaam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F030%2Fyaam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F030%2Fyaam/lists"}