try running helper scripts

This commit is contained in:
einhornimmond 2021-02-09 17:01:44 +01:00 committed by Ulf Gebhardt
parent 33605e0206
commit 8074d9ea65
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -1,19 +1,26 @@
# Build
From conanio/gcc7 as build
ENV DOCKER_WORKDIR="/build"
ENV DOCKER_WORKDIR="/code"
#RUN apt get update && \
#apt-get install -y --no-install-recommends && \
#apt-get autoclean && \
#apt-get autoremove && \
#apt-get clean && \
#rm -rf /var/lib/apt/lists/*
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends protobuf-compiler && \
apt-get autoclean && \
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p ${DOCKER_WORKDIR}
WORKDIR ${DOCKER_WORKDIR}
COPY . .
#RUN git submodule update --init --recursive
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 && \
@ -24,8 +31,14 @@ RUN cd dependencies/mariadb-connector-c && \
cd build && \
cmake -DWITH_SSL=OFF ..
RUN mkdir -p ${DOCKER_WORKDIR}
RUN cd ${DOCKER_WORKDIR} && \
#RUN conan profile update settings.compiler.libcxx=libstdc++11 default
RUN chmod +x compile_proto.sh
RUN chmod +x compile_pot.sh
RUN ls -la
RUN ./compile_pot.sh
RUN ./compile_proto.sh
RUN mkdir build && \
cd build && \
conan install .. --build=missing && \
cmake .. && \
make -j$(grep processor /proc/cpuinfo | wc -l)