Skip to content

Commit

Permalink
added dockerbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor Shmarov (PGR) committed May 21, 2016
1 parent 684f20a commit fd01e3f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
FROM dreal/dreal3
MAINTAINER Fedor Shmarov <[email protected]>
RUN apt-get -y install libgsl0-dev
COPY . /usr/local/src/probreach
WORKDIR /usr/local/src/probreach
RUN mkdir -p /build/release
WORKDIR /usr/local/src/probreach/build/release
RUN cmake ../../
RUN make
ENTRYPOINT ["/usr/local/src/probreach/bin/ProbReach"]
COPY bin/ProbReach /usr/local/bin/ProbReach
#ENTRYPOINT ProbReach
9 changes: 9 additions & 0 deletions dockerbuild/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM dreal/dreal3-build
MAINTAINER Fedor Shmarov <[email protected]>
VOLUME /usr/local/src/probreach/src
VOLUME /usr/local/src/probreach/bin
RUN apt-get -y install libgsl0-dev
RUN mkdir -p /usr/local/src/probreach/build/release
WORKDIR /usr/local/src/probreach/build/release
COPY build.sh .
ENTRYPOINT /bin/bash build.sh
4 changes: 4 additions & 0 deletions dockerbuild/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cmake ../../src
make
4 changes: 2 additions & 2 deletions CMakeLists.txt → src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -Wall -Wno-sign-compare -Wno-unused-
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")

# setting some environment variables
set(PROBREACH_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
set(PROBREACH_BINARY_DIR ${PROJECT_SOURCE_DIR}/build/release)
set(PROBREACH_SOURCE_DIR ${PROJECT_SOURCE_DIR})
set(PROBREACH_BINARY_DIR ${PROJECT_SOURCE_DIR}/../build/release)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROBREACH_BINARY_DIR})

# checking if dReal binary is set
Expand Down

0 comments on commit fd01e3f

Please sign in to comment.