Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
olcf
container-builder
Commits
1b929f21
Commit
1b929f21
authored
Feb 05, 2018
by
AdamSimpson
Browse files
Go back to more verbose build
parent
9fad3da1
Pipeline
#11688
failed with stages
in 32 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Builder/scripts/docker-builder-backend.sh
View file @
1b929f21
...
...
@@ -50,15 +50,15 @@ mv ./container.def Dockerfile
/usr/bin/unbuffer docker
${
DEBUG_FLAG
}
build
-t
localhost:5000/docker_image:latest
.
||
{
echo
'Build Failed'
;
exit
1
;
}
# Push to the local registry
docker
${
DEBUG_FLAG
}
push localhost:5000/docker_image:latest
&>
"
$OUT_FD
"
docker
${
DEBUG_FLAG
}
push localhost:5000/docker_image:latest
# Build the singularity container from the docker image
export
SINGULARITY_CACHEDIR
=
/home/builder/.singularity
export
SINGULARITY_NOHTTPS
=
true
export
SINGULARITY_PULLFOLDER
=
/home/builder
/usr/bin/unbuffer singularity
${
DEBUG_FLAG
}
pull
--name
container.simg docker://localhost:5000/docker_image:latest
2>&1
>
&
${
OUT_FD
}
/usr/bin/unbuffer singularity
${
DEBUG_FLAG
}
pull
--name
container.simg docker://localhost:5000/docker_image:latest
# Workaround for PULLFOLDER not being respected: https://github.com/singularityware/singularity/pull/855
if
[
-e
${
SINGULARITY_CACHEDIR
}
/container.simg
]
;
then
mv
${
SINGULARITY_CACHEDIR
}
/container.simg ./container.simg
2>&1
>
&
${
OUT_FD
}
mv
${
SINGULARITY_CACHEDIR
}
/container.simg ./container.simg
fi
\ No newline at end of file
BuilderQueue/include/BuilderQueue.h
View file @
1b929f21
...
...
@@ -67,6 +67,6 @@ private:
// Maximum number of builders to spin and keep up in reserve
const
std
::
size_t
max_reserve_builder_count
;
// Number of build requests that have been requested but not yet comp
e
lted
// Number of build requests that have been requested but not yet compl
e
ted
int
outstanding_create_count
;
};
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment