mirror of
https://github.com/opencontainers/runc.git
synced 2026-11-06 05:17:05 +00:00
Merge pull request #5567 from kolyshkin/dockerfile-ldconfig
Dockerfile: use ldconfig for dynamic libraries
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -305,6 +305,8 @@ jobs:
|
||||
# needs it.
|
||||
- name: build docker image
|
||||
run: make runcimage
|
||||
- name: smoke test docker image
|
||||
run: make integration TESTPATH=/run.bats
|
||||
- name: make releaseall
|
||||
run: make releaseall
|
||||
- name: upload artifacts
|
||||
|
||||
+3
-1
@@ -75,7 +75,9 @@ RUN mkdir -p $DYLIB_DIR \
|
||||
&& /tmp/script/build-libpathrs.sh "$LIBPATHRS_VERSION" $DYLIB_DIR $RELEASE_ARCHES
|
||||
ENV LIBPATHRS_VERSION=$LIBPATHRS_VERSION
|
||||
|
||||
ENV LD_LIBRARY_PATH=$DYLIB_DIR/lib
|
||||
# Use ldconfig rather than LD_LIBRARY_PATH, since runc init does not inherit
|
||||
# the environment.
|
||||
RUN echo "$DYLIB_DIR/lib" > /etc/ld.so.conf.d/runc-dylibs.conf && ldconfig
|
||||
ENV PKG_CONFIG_PATH=$DYLIB_DIR/lib/pkgconfig
|
||||
|
||||
# Prevent the "fatal: detected dubious ownership in repository" git complain during build.
|
||||
|
||||
Reference in new issue
Block a user