Commit 9faf27d2 authored by Daniel Wortmann's avatar Daniel Wortmann

Beginning to add building of docker containers.

parent 88891d4f
...@@ -102,6 +102,8 @@ target_link_libraries(inpgen juDFT) ...@@ -102,6 +102,8 @@ target_link_libraries(inpgen juDFT)
set_target_properties(inpgen PROPERTIES Fortran_MODULE_DIRECTORY modules/inpgen COMPILE_OPTIONS -Imodules/inpgen) set_target_properties(inpgen PROPERTIES Fortran_MODULE_DIRECTORY modules/inpgen COMPILE_OPTIONS -Imodules/inpgen)
include(cmake/docker.txt)
#if (${FLEUR_USE_SERIAL}) #if (${FLEUR_USE_SERIAL})
#install(TARGETS fleur inpgen #install(TARGETS fleur inpgen
......
find_program(DOCKER docker)
if (DOCKER)
if (FLEUR_USE_MPI)
set(dockername fleur_MPI)
else()
set(dockername fleur)
endif()
message("${DOCKER}->${dockername}")
add_custom_command(OUTPUT docker/Dockerfile
COMMAND "mkdir docker"
COMMAND "cp ${CMAKE_CURRENT_SOURCE_DIR}/docker/Dockerfile_${dockername} docker/Dockerfile"
COMMAND "cd docker;${DOCKER} build -t iffregistery.fz-juelich.de/fleur/fleur:${dockername} ."
COMMAND "${DOCKER} push iffregistery.fz-juelich.de/fleur/fleur:${dockername}"
DEPENDS inpgen ${dockername}
COMMENT "Build docker image")
add_custom_target(docker DEPENDS docker/Dockerfile)
endif()
FROM ubuntu:18.10
MAINTAINER d.wortmann@fz-juelich.de
COPY ../fleur /home
COPY ../inpgen /home
FROM ubuntu:18.10
MAINTAINER d.wortmann@fz-juelich.de
COPY ../fleur_MPI /home
COPY ../inpgen /home
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment