Add initial jq-based templating engine#349
Merged
tianon merged 2 commits intodocker-library:masterfrom Jul 8, 2021
Merged
Conversation
0d26c6f to
60b294c
Compare
Member
Author
tianon
commented
Jul 2, 2021
Comment on lines
-94
to
-102
| # https://github.com/docker-library/ruby/issues/246 | ||
| if [ "$rcVersion" = '2.5' ]; then | ||
| rubygems='3.0.3' | ||
| sed -ri \ | ||
| -e 's!%%RUBYGEMS%%!'"$rubygems"'!g' \ | ||
| "$dir/Dockerfile" | ||
| else | ||
| sed -ri -e '/RUBYGEMS_VERSION/d' "$dir/Dockerfile" | ||
| fi |
Member
Author
|
Here's the money shot: (stripping off the second commit so the diff is more obvious) Diff:$ diff -u <(bashbrew cat ruby) <(bashbrew cat <(./generate-stackbrew-library.sh))
--- /dev/fd/63 2021-07-02 16:51:20.941894259 -0700
+++ /dev/fd/62 2021-07-02 16:51:20.941894259 -0700
@@ -3,70 +3,70 @@
Tags: 3.0.1-buster, 3.0-buster, 3-buster, buster, 3.0.1, 3.0, 3, latest
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 3.0/buster
Tags: 3.0.1-slim-buster, 3.0-slim-buster, 3-slim-buster, slim-buster, 3.0.1-slim, 3.0-slim, 3-slim, slim
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
-Directory: 3.0/buster/slim
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
+Directory: 3.0/slim-buster
Tags: 3.0.1-alpine3.13, 3.0-alpine3.13, 3-alpine3.13, alpine3.13, 3.0.1-alpine, 3.0-alpine, 3-alpine, alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 3.0/alpine3.13
Tags: 3.0.1-alpine3.12, 3.0-alpine3.12, 3-alpine3.12, alpine3.12
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 3.0/alpine3.12
Tags: 2.7.3-buster, 2.7-buster, 2-buster, 2.7.3, 2.7, 2
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 2.7/buster
Tags: 2.7.3-slim-buster, 2.7-slim-buster, 2-slim-buster, 2.7.3-slim, 2.7-slim, 2-slim
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
-Directory: 2.7/buster/slim
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
+Directory: 2.7/slim-buster
Tags: 2.7.3-alpine3.13, 2.7-alpine3.13, 2-alpine3.13, 2.7.3-alpine, 2.7-alpine, 2-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 2.7/alpine3.13
Tags: 2.7.3-alpine3.12, 2.7-alpine3.12, 2-alpine3.12
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 2.7/alpine3.12
Tags: 2.6.7-buster, 2.6-buster, 2.6.7, 2.6
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 2.6/buster
Tags: 2.6.7-slim-buster, 2.6-slim-buster, 2.6.7-slim, 2.6-slim
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
-Directory: 2.6/buster/slim
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
+Directory: 2.6/slim-buster
Tags: 2.6.7-stretch, 2.6-stretch
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 2.6/stretch
Tags: 2.6.7-slim-stretch, 2.6-slim-stretch
Architectures: amd64, arm32v5, arm32v7, arm64v8, i386
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
-Directory: 2.6/stretch/slim
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
+Directory: 2.6/slim-stretch
Tags: 2.6.7-alpine3.13, 2.6-alpine3.13, 2.6.7-alpine, 2.6-alpine
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 2.6/alpine3.13
Tags: 2.6.7-alpine3.12, 2.6-alpine3.12
Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 3904524e5d9e538b33525a602a4bcb7618aff8b6
+GitCommit: e1bd3d07b1b92355bf5358e83732c649c1f93c9f
Directory: 2.6/alpine3.12 |
Closed
Also add "g++" during compilation (the upstream configure script looks for it, even though it doesn't appear to be used).
yosifkit
approved these changes
Jul 8, 2021
Member
Author
|
Someone(tm) should probably file an issue about not having |
tianon
added a commit
to docker-library/oi-janky-groovy
that referenced
this pull request
Jul 8, 2021
docker-library-bot
added a commit
to docker-library-bot/official-images
that referenced
this pull request
Jul 8, 2021
Changes: - docker-library/ruby@a1a06ef: Merge pull request docker-library/ruby#349 from infosiftr/jq-template - docker-library/ruby@0c5948b: Add Alpine 3.14 - docker-library/ruby@761ae37: Add initial jq-based templating engine
tianon
commented
Jan 7, 2025
Comment on lines
+9
to
+18
| RUN set -eux; \ | ||
| apk add --no-cache \ | ||
| bzip2 \ | ||
| ca-certificates \ | ||
| gmp-dev \ | ||
| libffi-dev \ | ||
| procps \ | ||
| yaml-dev \ | ||
| zlib-dev \ | ||
| ; |
Member
Author
There was a problem hiding this comment.
In the context of #492, I'm trying to remember why we added all this here, and I cannot for the life of me remember why we added all these permanently. 😭
tianon
commented
Jan 7, 2025
Comment on lines
-98
to
115
| )"; \ | ||
| apk add --no-network --virtual .ruby-rundeps \ | ||
| $runDeps \ | ||
| bzip2 \ | ||
| ca-certificates \ | ||
| libffi-dev \ | ||
| procps \ | ||
| yaml-dev \ | ||
| zlib-dev \ | ||
| ; \ | ||
| apk add --no-network --virtual .ruby-rundeps $runDeps; \ | ||
| apk del --no-network .ruby-builddeps; \ |
Member
Author
There was a problem hiding this comment.
Aha, this is where they moved from - the rundeps.
This was referenced Jan 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See also docker-library/php#1052 (and linked PRs).
Fixes #341
Closes #342
Closes #348
Hopefully this can help make #348 more straightforward/maintainable 🙏 😅🎉