diff --git a/Makefile b/Makefile index fa2341ad..5e0302eb 100644 --- a/Makefile +++ b/Makefile @@ -17,17 +17,17 @@ IMAGE_NAME := fluent/fluentd X86_IMAGES := \ - v1.17/alpine:v1.17.1-1.1,v1.17-1,edge \ - v1.17/debian:v1.17.1-debian-amd64-1.1,v1.17-debian-amd64-1,edge-debian-amd64 + v1.17/alpine:v1.17.1-1.2,v1.17-1,edge \ + v1.17/debian:v1.17.1-debian-amd64-1.2,v1.17-debian-amd64-1,edge-debian-amd64 # :,,,... # Define images for running on ARM platforms ARM_IMAGES := \ - v1.17/armhf/debian:v1.17.1-debian-armhf-1.1,v1.17-debian-armhf-1,edge-debian-armhf \ + v1.17/armhf/debian:v1.17.1-debian-armhf-1.2,v1.17-debian-armhf-1,edge-debian-armhf \ # Define images for running on ARM64 platforms ARM64_IMAGES := \ - v1.17/arm64/debian:v1.17.1-debian-arm64-1.1,v1.17-debian-arm64-1,edge-debian-arm64 \ + v1.17/arm64/debian:v1.17.1-debian-arm64-1.2,v1.17-debian-arm64-1,edge-debian-arm64 \ WINDOWS_IMAGES := \ v1.17/windows-ltsc2019:v1.17.1-windows-ltsc2019-1.1,v1.17-windows-ltsc2019-1 \ diff --git a/v1.17/alpine/Dockerfile b/v1.17/alpine/Dockerfile index 81499564..edc252e3 100644 --- a/v1.17/alpine/Dockerfile +++ b/v1.17/alpine/Dockerfile @@ -26,7 +26,8 @@ RUN apk update \ && export GEM_DIR=$(ruby -e 'puts Gem.dir') \ && echo GEM_DIR=$GEM_DIR \ && rm -rf $GEM_DIR/cache/*.gem \ - && find $GEM_DIR -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rf \ + # Don't purge $GEM_DIR/gems/GEM/lib/GEM/ext because it might contain runtime .so (e.g json) + && find $GEM_DIR -maxdepth 3 -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rfv \ && find $GEM_DIR -name "*.so" | xargs -r strip \ && gem install bigdecimal -v 1.4.4 \ && apk del .build-deps \ diff --git a/v1.17/alpine/hooks/post_push b/v1.17/alpine/hooks/post_push index 9b6cf6b5..c49ca4db 100644 --- a/v1.17/alpine/hooks/post_push +++ b/v1.17/alpine/hooks/post_push @@ -9,7 +9,7 @@ tagStart=$(expr index "$IMAGE_NAME" :) repoName=${IMAGE_NAME:0:tagStart-1} # Tag and push image for each additional tag -for tag in {v1.17.1-1.1,v1.17-1,edge}; do +for tag in {v1.17.1-1.2,v1.17-1,edge}; do docker tag $IMAGE_NAME ${repoName}:${tag} docker push ${repoName}:${tag} diff --git a/v1.17/arm64/debian/Dockerfile b/v1.17/arm64/debian/Dockerfile index e4fec12f..517fc9b1 100644 --- a/v1.17/arm64/debian/Dockerfile +++ b/v1.17/arm64/debian/Dockerfile @@ -37,7 +37,8 @@ RUN apt-get update \ && export GEM_DIR=$(ruby -e 'puts Gem.dir') \ && echo GEM_DIR=$GEM_DIR \ && rm -rf $GEM_DIR/cache/*.gem \ - && find $GEM_DIR -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rf \ + # Don't purge $GEM_DIR/gems/GEM/lib/GEM/ext because it might contain runtime .so (e.g json) + && find $GEM_DIR -maxdepth 3 -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rfv \ && find $GEM_DIR -name "*.so" | xargs -r strip \ && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \ && wget -O /tmp/jemalloc-5.3.0.tar.bz2 https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 \ diff --git a/v1.17/arm64/debian/hooks/post_push b/v1.17/arm64/debian/hooks/post_push index 12497d50..9442c4f4 100644 --- a/v1.17/arm64/debian/hooks/post_push +++ b/v1.17/arm64/debian/hooks/post_push @@ -13,7 +13,7 @@ curl -Lo manifest-tool https://github.com/estesp/manifest-tool/releases/download chmod +x manifest-tool # Tag and push image for each additional tag -for tag in {v1.17.1-debian-arm64-1.1,v1.17-debian-arm64-1,edge-debian-arm64}; do +for tag in {v1.17.1-debian-arm64-1.2,v1.17-debian-arm64-1,edge-debian-arm64}; do docker tag $IMAGE_NAME ${repoName}:${tag} docker push ${repoName}:${tag} diff --git a/v1.17/armhf/debian/Dockerfile b/v1.17/armhf/debian/Dockerfile index 1e881d0d..24589544 100644 --- a/v1.17/armhf/debian/Dockerfile +++ b/v1.17/armhf/debian/Dockerfile @@ -37,7 +37,8 @@ RUN apt-get update \ && export GEM_DIR=$(ruby -e 'puts Gem.dir') \ && echo GEM_DIR=$GEM_DIR \ && rm -rf $GEM_DIR/cache/*.gem \ - && find $GEM_DIR -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rf \ + # Don't purge $GEM_DIR/gems/GEM/lib/GEM/ext because it might contain runtime .so (e.g json) + && find $GEM_DIR -maxdepth 3 -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rfv \ && find $GEM_DIR -name "*.so" | xargs -r strip \ && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \ && wget -O /tmp/jemalloc-5.3.0.tar.bz2 https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 \ diff --git a/v1.17/armhf/debian/hooks/post_push b/v1.17/armhf/debian/hooks/post_push index 9e285347..5a6df286 100644 --- a/v1.17/armhf/debian/hooks/post_push +++ b/v1.17/armhf/debian/hooks/post_push @@ -9,7 +9,7 @@ tagStart=$(expr index "$IMAGE_NAME" :) repoName=${IMAGE_NAME:0:tagStart-1} # Tag and push image for each additional tag -for tag in {v1.17.1-debian-armhf-1.1,v1.17-debian-armhf-1,edge-debian-armhf}; do +for tag in {v1.17.1-debian-armhf-1.2,v1.17-debian-armhf-1,edge-debian-armhf}; do docker tag $IMAGE_NAME ${repoName}:${tag} docker push ${repoName}:${tag} diff --git a/v1.17/debian/Dockerfile b/v1.17/debian/Dockerfile index 24640280..c215aee4 100644 --- a/v1.17/debian/Dockerfile +++ b/v1.17/debian/Dockerfile @@ -26,7 +26,8 @@ RUN apt-get update \ && export GEM_DIR=$(ruby -e 'puts Gem.dir') \ && echo GEM_DIR=$GEM_DIR \ && rm -rf $GEM_DIR/cache/*.gem \ - && find $GEM_DIR -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rf \ + # Don't purge $GEM_DIR/gems/GEM/lib/GEM/ext because it might contain runtime .so (e.g json) + && find $GEM_DIR -maxdepth 3 -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rfv \ && find $GEM_DIR -name "*.so" | xargs -r strip \ && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \ && wget -O /tmp/jemalloc-5.3.0.tar.bz2 https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 \ diff --git a/v1.17/debian/hooks/post_push b/v1.17/debian/hooks/post_push index a1cf12b5..70bc5638 100644 --- a/v1.17/debian/hooks/post_push +++ b/v1.17/debian/hooks/post_push @@ -13,7 +13,7 @@ curl -Lo manifest-tool https://github.com/estesp/manifest-tool/releases/download chmod +x manifest-tool # Tag and push image for each additional tag -for tag in {v1.17.1-debian-amd64-1.1,v1.17-debian-amd64-1,edge-debian-amd64}; do +for tag in {v1.17.1-debian-amd64-1.2,v1.17-debian-amd64-1,edge-debian-amd64}; do docker tag $IMAGE_NAME ${repoName}:${tag} docker push ${repoName}:${tag}