mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix login server docker release build
This commit is contained in:
parent
8573a8568f
commit
adb2635691
@ -1,47 +1,36 @@
|
||||
#########################################################################################################
|
||||
# Build release
|
||||
#########################################################################################################
|
||||
From conanio/gcc7 as release
|
||||
From conanio/gcc9 as release
|
||||
|
||||
ENV DOCKER_WORKDIR="/code"
|
||||
|
||||
USER root
|
||||
|
||||
COPY --from=unicorny/protoc:3.9.1 /usr/bin/protoc /usr/bin/
|
||||
COPY --from=unicorny/protoc:3.9.1 /usr/lib/libprotobuf.so.20 /usr/lib/libprotobuf.so.20
|
||||
COPY --from=unicorny/protoc:3.9.1 /usr/lib/libprotoc.so.20 /usr/lib/libprotoc.so.20
|
||||
COPY --from=unicorny/protoc:3.9.1 /usr/include/google/protobuf/* /usr/include/google/protobuf/
|
||||
|
||||
|
||||
RUN mkdir -p ${DOCKER_WORKDIR}
|
||||
WORKDIR ${DOCKER_WORKDIR}
|
||||
|
||||
COPY . .
|
||||
#RUN git submodule update --init --recursive
|
||||
RUN ls -la
|
||||
# RUN cd dependencies/iroha-ed25519 && \
|
||||
# ls -la && \
|
||||
# mkdir build && \
|
||||
# cd build && \
|
||||
# cmake .. -DEDIMPL=ref10 -DHASH=sha2_sphlib -DRANDOM=bcryptgen -DBUILD=STATIC && \
|
||||
# make -j$(nproc)
|
||||
|
||||
RUN cd dependencies/mariadb-connector-c && \
|
||||
mkdir build && \
|
||||
cd build && \
|
||||
cmake -DWITH_SSL=OFF ..
|
||||
|
||||
RUN chmod +x compile_proto.sh
|
||||
RUN chmod +x compile_pot.sh
|
||||
RUN ls -la
|
||||
RUN ./compile_pot.sh
|
||||
RUN ./compile_proto.sh
|
||||
RUN chmod +x compile_pot.sh && ./compile_pot.sh
|
||||
|
||||
RUN mkdir build && \
|
||||
cd build && \
|
||||
conan install .. --build=missing && \
|
||||
cmake .. && \
|
||||
make -j$(nproc) Gradido_LoginServer
|
||||
make -j$(nproc) protoc grpc_cpp_plugin
|
||||
|
||||
RUN chmod +x unix_parse_proto.sh && ./unix_parse_proto.sh
|
||||
|
||||
RUN cd build && \
|
||||
cmake .. && \
|
||||
make -j$(nproc) Gradido_LoginServer
|
||||
|
||||
CMD ["./code"]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user