Commit Graph

222 Commits

Author SHA1 Message Date
Tianon Gravi 5ab18b3a1a
Add link to my upstream go-git issue 2020-05-06 10:25:32 -07:00
Tianon Gravi d8fcd27172 Add "bashbrew from" to the list of smoke test commands (so we test the fetching workflow to some minor extent) 2020-05-06 10:11:12 -07:00
Tianon Gravi ce6033aeda Fall back to "git fetch ... +SHA:..." (like GitHub Actions do!) if we fail to find the commit 2020-05-06 10:06:33 -07:00
Tianon Gravi 68878f489c Make sure "froms" list is unique (so we don't waste time doing "docker pull" on the same thing twice, in some edge cases) 2020-04-29 14:28:31 -07:00
Tianon Gravi 9f67c3e82a Fix "git fetch" to unshallow if possible too 2020-04-29 11:25:55 -07:00
Tianon Gravi 3ce512a383 Update example YAML from "actions/checkout@v1" to "v2" 2020-04-29 09:09:15 -07:00
Tianon Gravi 1f5a50dd45 Fix "docker build --file" (relative to "Directory") 2020-04-28 17:08:03 -07:00
yosifkit edff514f3b
Merge pull request #3 from infosiftr/git-fetch
Adjust GitHub Actions to "git fetch" the current repository's history…
2020-04-28 14:38:39 -07:00
Tianon Gravi abb0e55f11 Adjust GitHub Actions to "git fetch" the current repository's history into the Bashbrew cache when the commits appear to be unreachable (such as on a PR branch, for example) 2020-04-28 14:25:39 -07:00
yosifkit c74be66ae6
Merge pull request #2 from infosiftr/downstream-github-actions
Add initial scripts for image maintainers to use to auto-generate appropriate GitHub Actions
2020-04-27 17:42:30 -07:00
Tianon Gravi b22f02ed1b Skip "docker pull" on scratch 2020-04-27 17:21:19 -07:00
Tianon Gravi 53b96a62f1 Adjust Bashbrew building logic to be less noisy if called multiple times (quietly adjust PATH if bashbrew is already built) 2020-04-27 17:21:13 -07:00
Tianon Gravi 8bc7e993ea Remove extraneous whitespace 2020-04-27 15:53:38 -07:00
Tianon Gravi dd71778b05 Account for BASHBREW_NAMESPACE to support non-library use cases too 2020-04-27 15:41:37 -07:00
Tianon Gravi 3af45bd402 Add initial scripts for image maintainers to use to auto-generate appropriate GitHub Actions 2020-04-27 15:22:33 -07:00
Tianon Gravi eb76b2e3ec Add LICENSE (Apache 2.0) 2020-04-24 14:32:48 -07:00
Tianon Gravi 169d5a8913 Fix the ability to use "bashbrew.sh" from any working directory 2020-04-24 13:53:45 -07:00
Tianon Gravi dfff1c3708 Move go.mod down to Go 1.11 (since that's really the bottom end of what we support) 2020-04-24 13:43:47 -07:00
Tianon Gravi 97dcbb46d0 Bump version to 0.1.1 (post-release) 2020-04-24 13:37:23 -07:00
Tianon Gravi 61ca39fc4f Add explicit binary version and resurrect "bashbrew.sh" for helping users compile from source 2020-04-24 13:26:39 -07:00
Tianon Gravi 173e6d74dc Update Jenkins URLs and add GitHub Actions badge 2020-04-24 13:08:53 -07:00
Tianon Gravi c0bcfc0b91 Add initial GitHub Actions 2020-04-24 12:45:02 -07:00
Tianon Gravi f0377aba26 Add initial Jenkinsfile 2020-04-24 12:36:15 -07:00
Tianon Gravi 10520a9335 Add simple Dockerfile for local/development builds 2020-04-24 12:24:27 -07:00
Tianon Gravi ab90d5efb3 Perform release builds in Debian instead of Alpine 2020-04-24 12:12:59 -07:00
Tianon Gravi 6f6d9a6355 Move "bashbrew-entrypoint.sh" into scripts (not used in this repo yet) 2020-04-24 11:52:16 -07:00
Tianon Gravi 5425126232 Move Go code to root of the repo 2020-04-24 11:48:08 -07:00
Tianon Gravi 6ccbd0a7f2 Move "bashbrew-arch-to-goenv.sh" into a scripts subdirectory 2020-04-24 11:39:12 -07:00
Tianon Gravi 7a318e4b33 Minor README updates 2020-04-24 10:58:16 -07:00
Tianon Gravi 8d5a1f8f03 Update .dockerignore 2020-04-24 10:58:08 -07:00
Santiago Torres 0ef538e87e bashbrew:go:cmd-cat: remove extra v in Sprintf
The panic Sprintf for cmd-cat.go has an extra 'v' argument, which
triggers a failure when running go test. Remove the extra 'v' argument.
2020-04-19 22:05:21 -04:00
Tianon Gravi 722e29179a Update bashbrew bits for mips64le (still a WIP, but this lets us progress further) 2020-04-15 11:59:06 -07:00
Tianon Gravi 18968af85a Update to manifest-tool 1.0.2 2020-04-02 10:03:52 -07:00
Tianon Gravi 3169295522 Update to manifest-tool 1.0.1 2020-03-06 16:30:31 -08:00
Tianon Gravi ce741e2294 Fix Bash 4.3 issue and make scripts fail appropriately for similar issues in future 2020-02-11 15:36:06 -08:00
Tianon Gravi 211f71b45b Add script to detect "naughty" commit histories
I originally wanted this script to be more generic and look for *any* modified binary files that are over a certain threshold, but it took ~88 minutes to run over the entire library, and almost all that time was spent in `git` itself generating commit diffs (since they're not stored on-disk in such a way that those commit diffs are inexpensive to calculate).

I also did a rough prototype in Go using https://github.com/src-d/go-git but it had essentially the same speed (as expected, since it's the underlying data that makes it expensive to calculate, not the language being used to request the data).

So, instead this looks for modified files which match `**.tar**`, which should match the ones we typically worry about anyhow (there are some other problematic cases, but they aren't going to be rebased anytime soon because they've been problematic for so long so aren't worth bending over backwards to detect).
2020-02-07 17:00:54 -08:00
Tianon Gravi da648dc4f7 Update bashbrew builder Dockerfile to Alpine 3.11 2020-01-14 15:57:02 -08:00
Tianon Gravi 8d6444a1af Adjust "bashbrew" namespace sorting to account for more edge cases
In particular, our namespace changes made `bashbrew list --build-order wordpress php` work properly but `bashbrew --namespace amd64 list --build-order wordpress php` does not -- these changes adjust our sorting to take into account both the namespaced and the non-namespaced version of each tag in our library when checking the `FROM` values for sorting purposes.
2019-09-06 17:42:50 -07:00
Tianon Gravi 40f10346a4 Update bashbrew to Go 1.13 + Alpine 3.10, update manifest-tool to v1.0.0 🎉 2019-09-05 08:55:55 -07:00
Tianon Gravi b378215a98 Remove "put-multiarch" in favor of new "perl-bashbrew" repository
https://github.com/docker-library/perl-bashbrew
2019-07-22 16:40:03 -07:00
Tianon Gravi 28212552fa Skip repos where we have nothing to do ("opensuse", etc) 2019-07-04 15:55:15 -07:00
Tianon Gravi 6c6c2226e4 Update github.com/docker-library/go-dockerlibrary for tag validation 2019-06-26 17:09:28 -07:00
Tianon Gravi 47507557c3 Update "go-dockerlibrary" for fixed "path.Clean" behavior 2019-06-18 16:22:56 -07:00
Tianon Gravi 9d55b441fb Adjust temporary Git tags to also include namespace (and to normalize just in case something that can't be in a Git tag slips through) 2019-06-15 06:45:18 -07:00
Tianon Gravi e36f787052 Merge pull request #6054 from 7AC/master
bashbrew: account for namespaces when sorting repos
2019-06-14 20:13:49 -07:00
Tianon Gravi c922da004c Add "--target-namespace" to both "push" and "put-shared" and make "tag" more intuitive 2019-06-14 16:35:27 -07:00
Tianon Gravi 52682c57a3 Add "DeleteTag" before "CreateTag" to avoid "ErrTagExists" 2019-06-14 14:47:58 -07:00
Tianon Gravi 4029557244 Make "--namespace" a global parameter that affects every command (and add "--target-namespace" to "bashbrew tag") 2019-06-13 16:55:20 -07:00
Giuseppe Valente bc4037dd68 bashbrew: account for namespaces when sorting repos 2019-06-13 16:50:11 -07:00
Tianon Gravi 19e63bbaeb Update golang.org/x/crypto for proper s390x support 2019-06-13 16:37:57 -07:00