Better smoke test

pull/1402/head
Piero Toffanin 2022-01-12 12:17:31 -05:00
rodzic c4cebbb2cb
commit c8033cc26b
3 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -38,11 +38,11 @@ COPY --from=builder /usr/local /usr/local
# Install shared libraries that we depend on via APT, but *not*
# the -dev packages to save space!
# Also run a smoke test
# Also run a smoke test on ODM and OpenSfM
RUN bash configure.sh installruntimedepsonly \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& bash run.sh --help
&& bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'"
# Entry point
ENTRYPOINT ["python3", "/code/run.py"]

Wyświetl plik

@ -105,6 +105,8 @@ installruntimedepsonly() {
echo "Installing OpenMVS Dependencies"
installdepsfromsnapcraft runtime openmvs
# Fix: numpy.ndarray size changed
pip install -U numpy==1.21.1
}
installreqs() {
@ -156,9 +158,6 @@ install() {
mkdir -p build && cd build
cmake .. && make -j$processes
# Fix: numpy.ndarray size changed
pip install -U numpy==1.21.1
echo "Configuration Finished"
}

Wyświetl plik

@ -39,11 +39,11 @@ COPY --from=builder /usr/local /usr/local
# Install shared libraries that we depend on via APT, but *not*
# the -dev packages to save space!
# Also run a smoke test
# Also run a smoke test on ODM and OpenSfM
RUN bash configure.sh installruntimedepsonly \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& bash run.sh --help
&& bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'"
# Entry point
ENTRYPOINT ["python3", "/code/run.py"]