1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-11-17 13:02:40 +03:00

Adjust scanelf to properly detect runDeps

This commit is contained in:
Joe Ferguson
2017-09-22 14:19:38 -07:00
parent 26a1e84f0e
commit 1089a8971b
7 changed files with 21 additions and 28 deletions

View File

@@ -113,11 +113,10 @@ RUN set -ex \
&& make -C contrib install \ && make -C contrib install \
\ \
&& runDeps="$( \ && runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \ | sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \ )" \
&& apk add --no-cache --virtual .postgresql-rundeps \ && apk add --no-cache --virtual .postgresql-rundeps \
$runDeps \ $runDeps \

View File

@@ -140,11 +140,10 @@ RUN set -ex \
&& make -C contrib install \ && make -C contrib install \
\ \
&& runDeps="$( \ && runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \ | sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \ )" \
&& apk add --no-cache --virtual .postgresql-rundeps \ && apk add --no-cache --virtual .postgresql-rundeps \
$runDeps \ $runDeps \

View File

@@ -140,11 +140,10 @@ RUN set -ex \
&& make -C contrib install \ && make -C contrib install \
\ \
&& runDeps="$( \ && runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \ | sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \ )" \
&& apk add --no-cache --virtual .postgresql-rundeps \ && apk add --no-cache --virtual .postgresql-rundeps \
$runDeps \ $runDeps \

View File

@@ -113,11 +113,10 @@ RUN set -ex \
&& make -C contrib install \ && make -C contrib install \
\ \
&& runDeps="$( \ && runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \ | sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \ )" \
&& apk add --no-cache --virtual .postgresql-rundeps \ && apk add --no-cache --virtual .postgresql-rundeps \
$runDeps \ $runDeps \

View File

@@ -113,11 +113,10 @@ RUN set -ex \
&& make -C contrib install \ && make -C contrib install \
\ \
&& runDeps="$( \ && runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \ | sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \ )" \
&& apk add --no-cache --virtual .postgresql-rundeps \ && apk add --no-cache --virtual .postgresql-rundeps \
$runDeps \ $runDeps \

View File

@@ -113,11 +113,10 @@ RUN set -ex \
&& make -C contrib install \ && make -C contrib install \
\ \
&& runDeps="$( \ && runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \ | sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \ )" \
&& apk add --no-cache --virtual .postgresql-rundeps \ && apk add --no-cache --virtual .postgresql-rundeps \
$runDeps \ $runDeps \

View File

@@ -115,11 +115,10 @@ RUN set -ex \
&& make -C contrib install \ && make -C contrib install \
\ \
&& runDeps="$( \ && runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \ | sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \ )" \
&& apk add --no-cache --virtual .postgresql-rundeps \ && apk add --no-cache --virtual .postgresql-rundeps \
$runDeps \ $runDeps \