Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build failure #82

Open
cycle20 opened this issue Jun 20, 2024 · 0 comments
Open

docker build failure #82

cycle20 opened this issue Jun 20, 2024 · 0 comments

Comments

@cycle20
Copy link

cycle20 commented Jun 20, 2024

Hi,
I tried to build dssp docker image and I encountered this error message:

 > [4/8] RUN cd /build &&     git clone https://github.com/PDB-REDO/libcifpp.git &&     cd libcifpp &&     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release               -DBUILD_TESTING=OFF -DCIFPP_DOWNLOAD_CCD=OFF &&     cmake --build build -j $(nproc) &&     cmake --install build &&     echo "libcifpp installed":                                                                                                            
0.187 Cloning into 'libcifpp'...                                                                                                                                                                                   
3.374 CMake Error at CMakeLists.txt:25 (cmake_minimum_required):
3.374   CMake 3.23 or higher is required.  You are running version 3.22.1
3.374 
3.374 
3.374 -- Configuring incomplete, errors occurred!
------
Dockerfile:14
--------------------
  13 |     # https://github.com/PDB-REDO/libcifpp
  14 | >>> RUN cd /build && \
  15 | >>>     git clone https://github.com/PDB-REDO/libcifpp.git && \
  16 | >>>     cd libcifpp && \
  17 | >>>     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \
  18 | >>> 		-DBUILD_TESTING=OFF -DCIFPP_DOWNLOAD_CCD=OFF && \
  19 | >>>     cmake --build build -j $(nproc) && \
  20 | >>>     cmake --install build && \
  21 | >>>     echo "libcifpp installed"
  22 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /build &&     git clone https://github.com/PDB-REDO/libcifpp.git &&     cd libcifpp &&     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \t\t-DBUILD_TESTING=OFF -DCIFPP_DOWNLOAD_CCD=OFF &&     cmake --build build -j $(nproc) &&     cmake --install build &&     echo \"libcifpp installed\"" did not complete successfully: exit code: 1

Could you upgrade DSSP Dockerfile to resolve the error above?
Thank you,
Csongor


PS: I upgrade locally base Ubuntu version 24.04, but this is the next obstacle:

 > [7/8] RUN cd /src &&         rm -rf build &&     mkdir build &&     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF &&     cmake --build build -j $(nproc) &&     cmake --install build &&     echo "dssp installed" &&     rm -rf /src /build:                                                                                                                                                                 
0.283 -- The CXX compiler identification is GNU 13.2.0                                                                                                                                                             
0.298 -- Detecting CXX compiler ABI info                                                                                                                                                                           
0.385 -- Detecting CXX compiler ABI info - done                                                                                                                                                                    
0.398 -- Check for working CXX compiler: /usr/bin/c++ - skipped
0.399 -- Detecting CXX compile features
0.399 -- Detecting CXX compile features - done
0.404 -- Git hash not found
0.407 -- Not using resources since mrc was not found
0.408 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
0.500 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
0.501 -- Found Threads: TRUE  
0.503 CMake Error at /usr/local/lib/cmake/cifpp/cifpp-config.cmake:11 (message):
0.503   File or directory /usr/local/share/libcifpp referenced by variable
0.503   CIFPP_SHARE_DIR does not exist !
0.503 Call Stack (most recent call first):
0.503   /usr/local/lib/cmake/cifpp/cifpp-config.cmake:29 (set_and_check)
0.503   CMakeLists.txt:117 (find_package)
0.503 
0.503 
0.503 -- Configuring incomplete, errors occurred!
------
Dockerfile:35
--------------------
  34 |     COPY . /src
  35 | >>> RUN cd /src && \
  36 | >>> 	rm -rf build && \
  37 | >>>     mkdir build && \
  38 | >>>     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF && \
  39 | >>>     cmake --build build -j $(nproc) && \
  40 | >>>     cmake --install build && \
  41 | >>>     echo "dssp installed" && \
  42 | >>>     rm -rf /src /build
  43 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /src && \trm -rf build &&     mkdir build &&     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF &&     cmake --build build -j $(nproc) &&     cmake --install build &&     echo \"dssp installed\" &&     rm -rf /src /build" did not complete successfully: exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant