Author SHA1 Message Date
Ubuntu cb22ef5b3b add change dockerfile and fix configfile 2024-06-26 20:53:39 +00:00
5 changed files with 18 additions and 5 deletions
+3
View File
@@ -1,3 +1,6 @@
[submodule "third_party/userver"]
path = third_party/userver
url = https://github.com/userver-framework/userver.git
[submodule "log_analysis_frontend"]
path = log_analysis_frontend
url = https://gitlab.resds.ru/voloh.ka/log_analysis_frontend.git
+1 -1
View File
@@ -39,7 +39,7 @@ components_manager:
# Static content
fs-cache-main:
dir: /mnt/c/Users/october/Desktop/dev/python_projects/log_analysis_web/log_analysis_web/site
dir: /app/log_analysis_web_backend/log_analysis_frontend
handler-static:
path: /*
+1 -1
View File
@@ -8,7 +8,7 @@ server-port: 8080
# Storage
storage-database: log_analysis
storage-host: localhost
storage-host: postgres
storage-port: 5432
storage-username: postgres
storage-password: postgres
+12 -3
View File
@@ -1,8 +1,17 @@
FROM ubuntu:focal-20240530
ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/Moscow"
WORKDIR /app
RUN apt update && apt install git cmake fmtools python3-venv postgresql libpq-dev libev-dev libyaml-cpp-dev lld openssl libboost-all-dev gcc g++ postgresql pkg-config build-essential libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libboost-filesystem-dev -y
RUN apt install libssl-dev openssl libcrypto++-dev libhttp-parser-dev libnghttp2-dev -y
RUN apt update && apt install git cmake python3-venv postgresql libpq-dev libev-dev libyaml-cpp-dev lld openssl libboost-all-dev gcc g++ postgresql pkg-config build-essential libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libboost-filesystem-dev -y
RUN apt install libssl-dev openssl libcrypto++-dev wget ccache libhttp-parser-dev libc-ares-dev libnghttp2-dev golang fmtools libc-ares2 libcctz-dev libssh2-1-dev libfmt-dev -y
COPY ./ /app/
RUN wget https://github.com/fmtlib/fmt/archive/refs/tags/10.2.1.tar.gz && \
tar -xzf 10.2.1.tar.gz && \
cd fmt-10.2.1 && \
mkdir build && cd build && \
cmake .. && \
make -j$(nproc) && \
make install && cd /app/ && rm -rf fmt-10.2.1/ && rm 10.2.1.tar.gz
RUN git submodule init && git submodule update
RUN cmake /app/
RUN cmake -B build-dir -DCMAKE_BUILD_TYPE=Release
RUN /usr/bin/cmake --build build-dir/ -j 4
CMD /app/build-dir/log_analysis/server/la_server --config configuration.yaml --config_vars configuration_vars.yaml