Skip to content

Commit f931231

Browse files
committed
QPR-11822 bugfix
1 parent 6d94fff commit f931231

2 files changed

Lines changed: 25 additions & 26 deletions

File tree

Docker/Dockerfile-ORESWIG

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,27 @@ RUN mkdir build.release
2929
WORKDIR /swig/OREAnalytics-SWIG/Python/build.release
3030
RUN cmake -DORE=/swig ..
3131
RUN make -j ${num_cores}
32-
33-
34-
#&& cd ../../../QuantLib-SWIG/Python/test \
35-
#&& python3 -c "import sys, OREPlus; sys.modules['QuantLib']=OREPlus;import QuantLibTestSuite;QuantLibTestSuite.test()" \
36-
#&& cd ../../../QuantExt-SWIG/Python/test \
37-
#&& python3 -c "import sys, OREPlus; sys.modules['QuantExt']=OREPlus;import QuantExtTestSuite;QuantExtTestSuite.test()" \
38-
#&& cd ../../../OREData-SWIG/Python/test \
39-
#&& python3 -c "import sys, OREPlus; sys.modules['OREData']=OREPlus;import OREDataTestSuite;OREDataTestSuite.test()" \
40-
#&& cd ../../../OREAnalytics-SWIG/Python/test \
41-
#&& python3 -c "import sys, OREPlus; sys.modules['OREAnalytics']=OREPlus;import OREAnalyticsTestSuite;OREAnalyticsTestSuite.test()" \
42-
#&& cd ../../../OREPlus-SWIG/Python/test \
43-
#&& python3 OREPlusTestSuite.py \
44-
#&& cd / \
45-
#&& mkdir build \
46-
#&& mv /swig/OREPlus-SWIG/Python/build.release/OREPlus.py build \
47-
#&& mv /swig/OREPlus-SWIG/Python/build.release/_OREPlus.so build \
48-
#&& rm -rf /swig \
49-
#&& cd /usr/local/include \
50-
#&& rm -rf boost \
51-
#&& rm -rf orea \
52-
#&& rm -rf ored \
53-
#&& rm -rf ql \
54-
#&& rm -rf qle
55-
56-
ENV PYTHONPATH=/build
32+
WORKDIR /
33+
RUN mkdir build
34+
RUN mv /swig/OREAnalytics-SWIG/Python/build.release/ORE.py build \
35+
&& mv /swig/OREAnalytics-SWIG/Python/build.release/_ORE.so build
36+
37+
ENV PYTHONPATH=/build
38+
39+
RUN cd swig/QuantLib-SWIG/Python/test \
40+
&& python3 -c "import sys, ORE; sys.modules['QuantLib']=ORE;import QuantLibTestSuite;QuantLibTestSuite.test()"
41+
RUN cd swig/QuantExt-SWIG/Python/test \
42+
&& python3 -c "import sys, ORE; sys.modules['QuantExt']=ORE;import QuantExtTestSuite;QuantExtTestSuite.test()"
43+
RUN cd swig/OREData-SWIG/Python/test \
44+
&& python3 -c "import sys, ORE; sys.modules['OREData']=ORE;import OREDataTestSuite;OREDataTestSuite.test()"
45+
RUN cd swig/OREAnalytics-SWIG/Python/test \
46+
&& python3 -c "import sys, ORE; sys.modules['OREAnalytics']=ORE;import OREAnalyticsTestSuite;OREAnalyticsTestSuite.test()"
47+
RUN rm -rf /swig \
48+
&& cd /usr/local/include \
49+
&& rm -rf boost \
50+
&& rm -rf orea \
51+
&& rm -rf ored \
52+
&& rm -rf ql \
53+
&& rm -rf qle
54+
55+
COPY oreswig/OREAnalytics-SWIG/Python/Examples ./Examples

Docker/DockerfileRunORE.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
docker-compose -f Docker/docker-compose-oreswig-plus.yml build || exit 1
3+
docker-compose -f Docker/docker-compose-oreswig.yml build || exit 1

0 commit comments

Comments
 (0)