1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00

Support alpine more completely in the helper scripts

This commit is contained in:
Tianon Gravi 2016-01-29 10:36:19 -08:00
parent ae7dcbf73e
commit c8b41f3b85
2 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@ for version in "${versions[@]}"; do
done
for variant in onbuild slim alpine; do
[ -d "$version/$variant" ] || continue
commit="$(cd "$version/$variant" && git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
echo
for va in "${versionAliases[@]}"; do

View file

@ -32,7 +32,7 @@ for version in "${versions[@]}"; do
s/^(ENV RUBY_DOWNLOAD_SHA256) .*/\1 '"$shaVal"'/;
s/^(ENV BUNDLER_VERSION) .*/\1 '"$bundler"'/;
s/^(ENV RUBYGEMS_VERSION) .*/\1 '"$rubygems"'/;
' "$version/"{,slim/}Dockerfile
' "$version"{/,/*/}Dockerfile
sed -ri 's/^(FROM ruby):.*/\1:'"$version"'/' "$version/"*"/Dockerfile"
)
done