Commit 3c4f1bed authored by Remi Perenon's avatar Remi Perenon

Solving minor Docker issues

parent 4c09d30b
......@@ -11,4 +11,4 @@ ENV CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME}
COPY ./ /app/
WORKDIR /app
CMD BuildServer/Unix/build.sh gfortran; cp -a build_gfortran /artifacts/
\ No newline at end of file
CMD BuildServer/Unix/build.sh gfortran && cp -a build_gfortran /artifacts/
\ No newline at end of file
......@@ -12,4 +12,4 @@ ENV HDF5_INCLUDE_PATH=/hdf5/include
COPY ./ /app/
WORKDIR /app
CMD BuildServer/Unix/build.sh ifort; cp -a build_ifort /artifacts/
\ No newline at end of file
CMD BuildServer/Unix/build.sh ifort && cp -a build_ifort /artifacts/
\ No newline at end of file
# Return the docker containers that are exited
exited_containers=`docker ps -q -f "status=exited"`
exited_containers=`docker ps -q "status=exited"`
# If some have been found, remove them
if [ -n "$exited_containers" ]
then
......@@ -7,7 +7,7 @@ then
fi
# Return the docker images that are in dangling state
images=`docker images -q -f "dangling=true"`
images=`docker images -q "dangling=true"`
# If some dangling images have been found, remove them
if [ -n "$images" ]
then
......
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