Skip to content

Commit

Permalink
Fixing Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Apr 25, 2020
1 parent 3a5d2cf commit dd9654a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,11 @@ include_directories(${M4RI_INCLUDE_DIRS})
find_package(BRiAl REQUIRED)
include_directories(${BRiAl_INCLUDE_DIRS})

add_subdirectory(${PROJECT_SOURCE_DIR}/utils/cnf-utils)

option(TESTING "Enable testing" OFF)
if (TESTING)
add_subdirectory(${PROJECT_SOURCE_DIR}/utils/cnf-utils)
endif()

# headers, install locations, etc

Expand Down
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM ubuntu:19.04 as builder
FROM ubuntu:20.04 as builder

LABEL maintainer="Mate Soos"
LABEL version="1.0"
LABEL Description="Bosphorus"
ENV DEBIAN_FRONTEND=noninteractive

# get curl, etc
RUN apt-get update
Expand Down Expand Up @@ -33,11 +34,11 @@ RUN make install

# build CMS
WORKDIR /
RUN wget https://github.com/msoos/cryptominisat/archive/5.6.5.tar.gz \
&& tar -xvf 5.6.5.tar.gz
WORKDIR /cryptominisat-5.6.5
RUN wget https://github.com/msoos/cryptominisat/archive/5.7.0.tar.gz \
&& tar -xvf 5.7.0.tar.gz
WORKDIR /cryptominisat-5.7.0
RUN mkdir build
WORKDIR /cryptominisat-5.6.5/build
WORKDIR /cryptominisat-5.7.0/build
RUN cmake -DSTATICCOMPILE=ON .. \
&& make -j2 \
&& make install \
Expand Down

0 comments on commit dd9654a

Please sign in to comment.