update modules to use github path, first docker file

This commit is contained in:
einhornimmond 2021-02-09 14:05:56 +01:00 committed by Ulf Gebhardt
parent 3ed94b8a9c
commit 99779f0268
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

32
Dockerfile Normal file
View File

@ -0,0 +1,32 @@
# Build
From conanio/gcc7 as build
ENV DOCKER_WORKDIR="/build"
#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/*
COPY . .
#RUN git submodule update --init --recursive
RUN cd dependencies/iroha-ed25519 && \
mkdir build && \
cd build && \
cmake .. -DEDIMPL=ref10 -DHASH=sha2_sphlib -DRANDOM=bcryptgen -DBUILD=STATIC && \
make -j$(grep processor /proc/cpuinfo | wc -l)
RUN cd dependencies/mariadb-connector-c && \
mkdir build && \
cd build && \
cmake -DWITH_SSL=OFF ..
RUN mkdir -p ${DOCKER_WORKDIR}
RUN cd ${DOCKER_WORKDIR} && \
conan install .. --build=missing && \
cmake .. && \
make -j$(grep processor /proc/cpuinfo | wc -l)