
This PS adds test artifacts to be used to validate Jarvis operation: The Open5GS 5G SA Core. Change-Id: I33d3ac2b2c584320aa3b0ca928657496ccd96303 Signed-off-by: Pete Birley <pete@port.direct>
20 lines
593 B
Bash
Executable File
20 lines
593 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
: "${image_registry:="quay.io"}"
|
|
: "${image_repo:="port"}"
|
|
: "${image_prefix:="open5gs"}"
|
|
: "${image_tag:="latest"}"
|
|
|
|
: "${push_images:="false"}"
|
|
|
|
for dockerfile_path in `find ./tools/gate/jarvis/5G-SA-core -name Dockerfile`; do
|
|
build_root=`dirname ${dockerfile_path}`
|
|
network_function=`echo $build_root | awk -F '/' '{ print $NF }'`
|
|
image_uri="${image_registry}/${image_repo}/${image_prefix}-${network_function}:${image_tag}"
|
|
sudo docker build -t "${image_uri}" "${build_root}"
|
|
if [[ "${push_images}" == "true" ]]; then
|
|
docker push "${image_uri}"
|
|
fi
|
|
done
|