mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
add support for local cache
This commit is contained in:
parent
81aad58c2f
commit
9815453623
1 changed files with 14 additions and 0 deletions
|
@ -47,6 +47,20 @@ for i in $myARCHITECTURES;
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# Let's ensure we have builder created with cache support
|
||||||
|
echo "### Checking for mybuilder ..."
|
||||||
|
if ! docker buildx ls | grep -q mybuilder;
|
||||||
|
then
|
||||||
|
echo "## Setting up mybuilder ..."
|
||||||
|
docker buildx create --name mybuilder
|
||||||
|
# Set as default, otherwise local cache is not supported
|
||||||
|
docker buildx use mybuilder
|
||||||
|
docker buildx inspect --bootstrap
|
||||||
|
else
|
||||||
|
echo "## Found mybuilder!"
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
# Only run with command switch
|
# Only run with command switch
|
||||||
if [ "$1" == "" ]; then
|
if [ "$1" == "" ]; then
|
||||||
echo "### T-Pot Multi Arch Image Builder."
|
echo "### T-Pot Multi Arch Image Builder."
|
||||||
|
|
Loading…
Reference in a new issue