'Generic Commit'
Some checks failed
dropshell-build / build (push) Failing after 34s

This commit is contained in:
Your Name 2025-06-06 19:32:45 +12:00
parent e23cffd984
commit 2d646edf0d

View File

@ -87,6 +87,19 @@ RUN curl -LO https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/${
RUN ls /usr/local/jsoncpp/include/json/version.h RUN ls /usr/local/jsoncpp/include/json/version.h
# Build libpq statically
ARG POSTGRES_VERSION=16.2
WORKDIR /tmp
RUN curl -LO https://ftp.postgresql.org/pub/source/v${POSTGRES_VERSION}/postgresql-${POSTGRES_VERSION}.tar.gz && \
tar xzf postgresql-${POSTGRES_VERSION}.tar.gz && \
cd postgresql-${POSTGRES_VERSION} && \
./configure --prefix=/usr/local/pgsql --without-readline --without-zlib --enable-static --disable-shared && \
cd src/interfaces/libpq && \
make -j$(nproc) && \
make install && \
cd / && rm -rf /tmp/postgresql-${POSTGRES_VERSION} /tmp/postgresql-${POSTGRES_VERSION}.tar.gz
#ARG DROGON_VERSION=1.9.5 #ARG DROGON_VERSION=1.9.5
RUN git clone --recurse-submodules https://github.com/drogonframework/drogon.git /tmp/drogon && \ RUN git clone --recurse-submodules https://github.com/drogonframework/drogon.git /tmp/drogon && \
#RUN git clone --branch v${DROGON_VERSION} --depth 1 https://github.com/drogonframework/drogon.git /tmp/drogon && \ #RUN git clone --branch v${DROGON_VERSION} --depth 1 https://github.com/drogonframework/drogon.git /tmp/drogon && \
@ -113,6 +126,8 @@ RUN git clone --recurse-submodules https://github.com/drogonframework/drogon.git
-DCARES_LIBRARY=/usr/local/cares/lib/libcares.a \ -DCARES_LIBRARY=/usr/local/cares/lib/libcares.a \
-DJSONCPP_INCLUDE_DIRS=/usr/local/jsoncpp/include \ -DJSONCPP_INCLUDE_DIRS=/usr/local/jsoncpp/include \
-DJSONCPP_LIBRARIES=/usr/local/jsoncpp/lib/libjsoncpp.a \ -DJSONCPP_LIBRARIES=/usr/local/jsoncpp/lib/libjsoncpp.a \
-DPostgreSQL_INCLUDE_DIR=/usr/local/pgsql/include \
-DPostgreSQL_LIBRARY=/usr/local/pgsql/lib/libpq.a \
&&\ &&\
make -j$(nproc) && \ make -j$(nproc) && \
make install && \ make install && \