Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yehudashtein authored Jan 21, 2025
1 parent a44b161 commit e72b3c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ENV ANDROID_NDK_VERSION=r27c
ENV ANDROID_NDK_ROOT=/pjsip/android-ndk-${ANDROID_NDK_VERSION}
ENV ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}
ENV ANDROID_TARGET_API=30
ENV PJ_SIP_VERSION=2.15.1



Expand All @@ -65,7 +66,6 @@ WORKDIR /pjsip

RUN git clone https://github.com/pjsip/pjproject.git


# Modify MAX_RX_WIDTH and MAX_RX_HEIGHT in openh264.cpp and and_vid_mediacodec.cpp
RUN sed -i "s/#define MAX_RX_WIDTH\s\+[0-9]\+/#define MAX_RX_WIDTH ${MAX_RX_WIDTH}/" /pjsip/pjproject/pjmedia/src/pjmedia-codec/openh264.cpp && \
sed -i "s/#define MAX_RX_HEIGHT\s\+[0-9]\+/#define MAX_RX_HEIGHT ${MAX_RX_HEIGHT}/" /pjsip/pjproject/pjmedia/src/pjmedia-codec/openh264.cpp && \
Expand Down Expand Up @@ -107,7 +107,8 @@ RUN vcpkg version

RUN ndk-build --version


# Checkout the specific tag
RUN git checkout tags/${PJ_SIP_VERSION} -b stable-${PJ_SIP_VERSION}

COPY config_site.h /pjsip/pjproject/pjlib/include/pj/.
RUN dos2unix /pjsip/pjproject/pjlib/include/pj/config_site.h
Expand Down Expand Up @@ -166,4 +167,4 @@ COPY ./copy_results.sh /pjsip/.
RUN dos2unix /pjsip/copy_results.sh
RUN chmod +x ./copy_results.sh

ENTRYPOINT [ "/bin/sh", "-c", "./copy_results.sh"]
ENTRYPOINT [ "/bin/sh", "-c", "./copy_results.sh"]

0 comments on commit e72b3c9

Please sign in to comment.