{"id":20684488,"url":"https://github.com/restic/builder","last_synced_at":"2025-07-17T22:34:04.838Z","repository":{"id":21448523,"uuid":"92777422","full_name":"restic/builder","owner":"restic","description":"Build script and Dockerfile to produce the restic binaries","archived":false,"fork":false,"pushed_at":"2025-03-27T18:48:03.000Z","size":57,"stargazers_count":33,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T19:40:41.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"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/restic.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":"2017-05-29T21:43:03.000Z","updated_at":"2025-03-27T18:48:07.000Z","dependencies_parsed_at":"2024-11-16T22:22:20.869Z","dependency_job_id":"567afc20-39d9-44fb-a519-a30467342f7c","html_url":"https://github.com/restic/builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/restic/builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restic%2Fbuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restic%2Fbuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restic%2Fbuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restic%2Fbuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/restic","download_url":"https://codeload.github.com/restic/builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restic%2Fbuilder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265672343,"owners_count":23808844,"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-16T22:22:12.959Z","updated_at":"2025-07-17T22:34:04.813Z","avatar_url":"https://github.com/restic.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains the build script and `Dockerfile` used to produce the\nbinaries for each restic release starting at 0.9.3.\n\nInstructions\n============\n\n**Note:** For more detailed instructions, reference the Reproducible Builds section of the [Developer Information](https://github.com/restic/restic/blob/master/doc/developer_information.rst).\n\nFirst, clone (or update) this repo:\n\n    $ git clone https://github.com/restic/builder.git\n\n    or\n\n    $ git pull\n\nSecond, pull the base image and build the docker container using the required Go version:\n\n    $ GO_VERSION=1.20.3\n    $ docker pull debian:stable\n    $ docker build --no-cache -t restic/builder:${GO_VERSION} --build-arg GO_VERSION=${GO_VERSION} .\n    $ docker tag restic/builder:${GO_VERSION} restic/builder:latest\n\nMaintainers may also publish the new image to Docker hub:\n\n    $ docker push restic/builder:${GO_VERSION}\n    $ docker push restic/builder:latest\n\nNext, download and extract the restic source code.\n\n    $ curl -L https://github.com/restic/restic/archive/v0.9.3.tar.gz -O\n    $ tar -xzvf v0.9.3.tar.gz\n\nThen run the build as follows, mounting the directory with the source code as `/restic` and putting the resulting files in the directory `output`:\n\n    $ mkdir output\n    $ docker run --rm --volume \"$PWD/restic-0.9.3:/restic\" --volume \"$PWD/output:/output\" restic/builder\n\nVerify Build\n============\nIf all goes well then you've produced exactly the same binaries as in the official release.\n\nTo verify the linux amd64 build for example, run:\n\n    $ sha256_restic=3c882962fc07f611a6147ada99c9909770d3e519210fd483cde9609c6bdd900c\n    $ echo \"${sha256_restic} output/restic_linux_amd64.bz2\" | sha256sum -c -\n\nSoftware\n========\n\nThe Docker container is based on Debian stable and the official Go compiler is\nused in the latest released version.\n\nThe container has the official Go compiler installed in `/usr/local/go`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestic%2Fbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frestic%2Fbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestic%2Fbuilder/lists"}