Commit bf2f4cc2 authored by Jan Hoeckesfeld's avatar Jan Hoeckesfeld
Browse files

rearranged gitignore

parent b41f99d9
......@@ -10,4 +10,5 @@ logs/
report/
clusterLogs/
.env
\ No newline at end of file
.env
*.simg
\ No newline at end of file
......@@ -4,6 +4,7 @@
# DOCKER_HUB
# PROJECT_DIR
# FILE_SERVER
# CKMERTOOLS_GIT_FOLDER
if test -f ".env";
......@@ -11,6 +12,10 @@ then
export $(cat .env | xargs)
fi
commitsha=$(git --git-dir ${CKMERTOOLS_GIT_FOLDER}/.git rev-parse HEAD)
echo "${commitsha}"
sed -i -E "/^ git checkout / s/(.{15}).{40}/\ git checkout $commitsha/" "${DOCKERFILE}/Dockerfile"
sum=$(echo -n ${DOCKER_HUB} | md5sum | awk '{print $1}')
docker image build -t local/ckmertools_docker:latest "${DOCKERFILE}"
singularity build "${sum}.simg" docker-daemon://local/ckmertools_docker:latest
......
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