put static_registry as first argument
This commit is contained in:
4
build.sh
4
build.sh
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
./build_containers.sh
|
./build_containers.sh $1
|
||||||
./build_registry.py > static_registry/default.nix
|
./build_registry.py $1 > ${1}/default.nix
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
for dir in $(ls static_registry)
|
BASE=$1
|
||||||
|
for dir in $(ls $BASE)
|
||||||
do
|
do
|
||||||
[ ! -d static_registry/$dir ] && continue
|
[ ! -d $BASE/$dir ] && continue
|
||||||
pushd .
|
pushd .
|
||||||
echo $dir
|
echo $dir
|
||||||
cd static_registry/$dir
|
cd $BASE/$dir
|
||||||
COMMIT_HASH=$(docker build . | tail -n 1 | cut -d ' ' -f3)
|
COMMIT_HASH=$(docker build . | tail -n 1 | cut -d ' ' -f3)
|
||||||
TAG=$(basename $(pwd)):$COMMIT_HASH
|
TAG=$(basename $(pwd)):$COMMIT_HASH
|
||||||
docker tag $COMMIT_HASH $TAG
|
docker tag $COMMIT_HASH $TAG
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
pathlist = Path("static_registry").glob('**/*.tar.gz')
|
base = sys.argv[1]
|
||||||
|
|
||||||
|
pathlist = Path(base).glob('**/*.tar.gz')
|
||||||
registry = {
|
registry = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user