{"id":19164503,"url":"https://github.com/heapstats/heapstats-builder","last_synced_at":"2026-05-15T11:34:33.764Z","repository":{"id":80453008,"uuid":"122955219","full_name":"HeapStats/heapstats-builder","owner":"HeapStats","description":"Docker containers for building HeapStats","archived":false,"fork":false,"pushed_at":"2020-03-04T01:19:58.000Z","size":41,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-03T22:15:49.137Z","etag":null,"topics":["build-automation","docker"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HeapStats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-02-26T10:41:47.000Z","updated_at":"2020-03-04T01:20:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"620be2a0-6a0e-4574-ba93-c757f00ff3ed","html_url":"https://github.com/HeapStats/heapstats-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeapStats%2Fheapstats-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeapStats%2Fheapstats-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeapStats%2Fheapstats-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeapStats%2Fheapstats-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeapStats","download_url":"https://codeload.github.com/HeapStats/heapstats-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245901,"owners_count":19771028,"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":["build-automation","docker"],"created_at":"2024-11-09T09:22:26.589Z","updated_at":"2026-05-15T11:34:28.743Z","avatar_url":"https://github.com/HeapStats.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"HeapStats Builder\n===================\n\n**If you want to use Kubernetes as build bot, please see [here](https://github.com/HeapStats/heapstats-builder/blob/master/k8s)**\n\nThe containers in this repository provides build infrastructure for HeapStats.\n\n* Generate archives\n    * `archives/`\n    * Download HeapStats source from specified URL and create Analyzer ZIP archives.\n* RPM bulid\n    * `rpmbulid/*`\n    * Create RPMs for EL6 / EL7 / EL8 /Fedora\n\n# Build containers\n\n## Download source archive and build analyzers\n\n### for HeapStats 2.1 or earlier\n\n```\n$ docker build -t heapstats/builder:archives-2.1 -f archives/Dockerfile-2.1 .\n```\n\n### for HeapStats 2.2 or later (includes trunk repo)\n\n```\n$ docker build -t heapstats/builder:archives-2.2 -f archives/Dockerfile-2.2 .\n```\n\n## `rpmbuild` for each OSes\n\n```\n$ docker build -t heapstats/builder:centos6 -f rpmbuild/Dockerfile.el6 .\n$ docker build -t heapstats/builder:centos7 -f rpmbuild/Dockerfile.el7 .\n$ docker build -t heapstats/builder:centos8 -f rpmbuild/Dockerfile.el8 .\n$ docker build -t heapstats/builder:fedora -f rpmbuild/Dockerfile.fedora .\n```\n\n# Pull from Docker Hub\n\nhttps://hub.docker.com/r/heapstats/builder/\n\n```\n$ docker pull heapstats/bulider:archives-2.1\n$ docker pull heapstats/bulider:archives-2.2\n$ docker pull heapstats/bulider:centos6\n$ docker pull heapstats/bulider:centos7\n$ docker pull heapstats/bulider:centos8\n$ docker pull heapstats/bulider:fedora\n```\n\n# Build HeapStats binaries\n\nYou have to set some environment variables:\n\n* `RELEASE`\n    * Release version (e.g. 2.1.0)\n* `BZ2_ARCHIVE`\n    * Source archive on [IcedTea Mercurial repository](http://icedtea.wildebeest.org/hg/). You can get it from `bz2` link on left menu bar on this site.\n    * If you do not set this value, container will download BZ2 release archive from [IcedTea release repository](http://icedtea.wildebeest.org/hg/release/)\n\n**NOTE:**  \n`heapstats/builder:archives-2.1` is for HeapStats 2.1 or earlier. If you want to compile HeapStats 2.2 or later including trunk repo, you need to use `heapstats/builder:archives-2.2`.\n\nIf you run them under proxy, you also need to set `http_proxy` and `https_proxy`.\n\n## Run containers\n\n### Release version only\n\n```\n$ docker run -it --rm -v /path/to/outdir:/share -e RELEASE=\u003cRelease version\u003e heapstats/builder:\u003ctag\u003e\n```\n\n### With `BZ2_ARCHIVE`\n```\n$ docker run -it --rm -v /path/to/outdir:/share -e BZ2_ARCHIVE=\u003cSource archive URL\u003e -e RELEASE=\u003cRelease version\u003e heapstats/builder:\u003ctag\u003e\n```\n\nYou can get binaries from `/path/to/outdir`.\n\n**NOTE 1:**  \nYou can share maven local repository between containers if you pass `-v /path/to/localrepo:/root/.m2` to `docker run`. See [Maven Official Docker Hub](https://hub.docker.com/_/maven) for more details.\n\n**NOTE 2:**  \nIf `/path/to/outdir/$RELEASE/src/$RELEASE.tar.gz` exists, it would be used for build, would not download the source.\n\n# Output files\n\n## HeapStats 2.0\n\n```\nheapstats-2.0.6/\n├ bin\n│   ├ agent\n│   │   ├ heapstats-2.0.6-0.el6.x86_64.rpm\n│   │   ├ heapstats-2.0.6-0.el7.x86_64.rpm\n│   │   ├ heapstats-2.0.6-0.el8.x86_64.rpm\n│   │   ├ heapstats-2.0.6-0.fc31.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.0.6-0.el6.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.0.6-0.el7.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.0.6-0.el8.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.0.6-0.fc31.x86_64.rpm\n│   │   ├ heapstats-debugsource-2.0.6-0.el8.x86_64.rpm\n│   │   └ heapstats-debugsource-2.0.6-0.fc31.x86_64.rpm\n│   └ analyzer\n│       ├ heapstats-analyzer-2.0.6-0.fc31.noarch.rpm\n│       ├ heapstats-analyzer-2.0.6-bin.zip\n│       ├ heapstats-cli-2.0.6-0.el6.noarch.rpm\n│       ├ heapstats-cli-2.0.6-0.el7.noarch.rpm\n│       ├ heapstats-cli-2.0.6-0.el8.noarch.rpm\n│       ├ heapstats-cli-2.0.6-0.fc31.noarch.rpm\n│       └ heapstats-cli-2.0.6-bin.zip\n└ src\n    ├ heapstats-2.0.6-0.el6.src.rpm\n    ├ heapstats-2.0.6-0.el7.src.rpm\n    ├ heapstats-2.0.6-0.el8.src.rpm\n    ├ heapstats-2.0.6-0.fc31.src.rpm\n    └ heapstats-2.0.6.tar.gz\n```\n\n## HeapStats 2.1\n\n```\nheapstats-2.1.0/\n├ api\n│   ├ heapstats-core-2.1.0.jar\n│   └ heapstats-plugin-api-2.1.0.jar\n├ bin\n│   ├ agent\n│   │   ├ heapstats-2.1.0-0.el6.x86_64.rpm\n│   │   ├ heapstats-2.1.0-0.el7.x86_64.rpm\n│   │   ├ heapstats-2.1.0-0.el8.x86_64.rpm\n│   │   ├ heapstats-2.1.0-0.fc31.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.1.0-0.el6.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.1.0-0.el7.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.1.0-0.el8.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.1.0-0.fc31.x86_64.rpm\n│   │   ├ heapstats-debugsource-2.1.0-0.el8.x86_64.rpm\n│   │   └ heapstats-debugsource-2.1.0-0.fc31.x86_64.rpm\n│   └ analyzer\n│       ├ heapstats-analyzer-2.1.0-0.fc31.noarch.rpm\n│       ├ heapstats-analyzer-2.1.0-bin.zip\n│       ├ heapstats-cli-2.1.0-0.el6.noarch.rpm\n│       ├ heapstats-cli-2.1.0-0.el7.noarch.rpm\n│       ├ heapstats-cli-2.1.0-0.el8.noarch.rpm\n│       ├ heapstats-cli-2.1.0-0.fc31.noarch.rpm\n│       └ heapstats-cli-2.1.0-bin.zip\n└ src\n    ├ heapstats-2.1.0-0.el6.src.rpm\n    ├ heapstats-2.1.0-0.el7.src.rpm\n    ├ heapstats-2.1.0-0.el8.src.rpm\n    ├ heapstats-2.1.0-0.fc31.src.rpm\n    └ heapstats-2.1.0.tar.gz\n```\n\n## HeapStats 2.2\n\n```\nheapstats-2.2.trunk/\n├ api\n│   ├ heapstats-core-2.2-SNAPSHOT.jar\n│   └ heapstats-plugin-api-2.2-SNAPSHOT.jar\n├ bin\n│   ├ agent\n│   │   ├ heapstats-2.2.trunk-0.el6.x86_64.rpm\n│   │   ├ heapstats-2.2.trunk-0.el7.x86_64.rpm\n│   │   ├ heapstats-2.2.trunk-0.el8.x86_64.rpm\n│   │   ├ heapstats-2.2.trunk-0.fc31.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.2.trunk-0.el6.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.2.trunk-0.el7.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.2.trunk-0.el8.x86_64.rpm\n│   │   ├ heapstats-debuginfo-2.2.trunk-0.fc31.x86_64.rpm\n│   │   ├ heapstats-debugsource-2.2.trunk-0.el8.x86_64.rpm\n│   │   └ heapstats-debugsource-2.2.trunk-0.fc31.x86_64.rpm\n│   └ analyzer\n│       ├ heapstats-analyzer-2.2-SNAPSHOT-linux-amd64.zip\n│       └ heapstats-cli-2.2-SNAPSHOT-linux-amd64.zip\n└ src\n    ├ heapstats-2.2.trunk-0.el6.src.rpm\n    ├ heapstats-2.2.trunk-0.el7.src.rpm\n    ├ heapstats-2.2.trunk-0.el8.src.rpm\n    ├ heapstats-2.2.trunk-0.fc31.src.rpm\n    └ heapstats-2.2.trunk.tar.gz\n```\n\n# Experimental build environment\n\n## Raspbian\n\n* [experimental/raspbian](experimental/raspbian)\n* Run `raspbian-setup.sh`\n    * Download and mount the latest Raspbian on current directory\n    * Build HeapStats Agent for ARM32 from IcedTea repo\n\n**NOTE:**\n* You must install packages on your host as below:\n    * `qemu-img`\n    * `qemu-user-static`\n    * `systemd-container`\n* You need to run `raspbian-setup.sh` as root because it would mount filesystem in Raspbian image.\n* If you want to build specified version, you can pass the version (2.0 or 2.1) to `raspbian-setup.sh`.\n* If you want to build withspecified gz archive, you need to point the location of archive to `$LOCAL_GZ_ARCHIVE`.\n* If you already mounted `rpi_sysroot`, you can skip the process with `--skip-mount`.\n\n## Ubuntu\n\n* [experimental/ubuntu](experimental/ubuntu)\n* Run `docker build -t heapstats/builder:ubuntu -f experimental/ubuntu/Dockerfile .` to build image\n* Run `docker run -it --rm heapstats/builder:ubuntu` to build HeapStats\n    * Build HeapStats Agent and Analyzer for AMD64 from IcedTea repo\n* If you want to build specified version, you can pass the version (2.0 or 2.1) via environment variable (e.g. `-e VER=2.0`).\n* If you want to build with specified gz archive, you need to pass the location of the archive and its name (e.g. `-v /path/to/dir:/archive -e LOCAL_GZ_ARCHIVE=\u003carchive name\u003e.tar.gz`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapstats%2Fheapstats-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapstats%2Fheapstats-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapstats%2Fheapstats-builder/lists"}