You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-11-17 13:02:40 +03:00
Merge pull request #344 from infosiftr/scanelf
Adjust scanelf to properly detect runDeps
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user