Unverified Commit 266fd1a6 authored by Adrian Lita's avatar Adrian Lita Committed by Angelo Athanassopoulos

Changed overall structure to have only the adapter

parent 563572fe
#!/bin/bash
OSBASE="ubuntu20"
BUILD_RAN_BASE="false"
BUILD_RAN_BUILD="false"
BUILD_RAN_DEV="false"
BUILD_RAN_GNB="false"
until [ -z "$1" ]
do
case "$1" in
--all)
BUILD_RAN_BASE="true"
BUILD_RAN_BUILD="true"
BUILD_RAN_DEV="true"
BUILD_RAN_GNB="true"
shift
;;
--base)
BUILD_RAN_BASE="true"
shift
;;
--build)
BUILD_RAN_BUILD="true"
shift
;;
--dev)
BUILD_RAN_DEV="true"
shift
;;
--gnb)
BUILD_RAN_GNB="true"
shift
;;
--no-cache)
NO_CACHE="--no-cache"
shift
;;
*)
shift
;;
esac
done
if ! $BUILD_RAN_BUILD && ! $BUILD_RAN_GNB && ! $BUILD_RAN_DEV && ! $BUILD_RAN_GNB; then
BUILD_RAN_BUILD="true"
BUILD_RAN_GNB="true"
fi
if $BUILD_RAN_BASE; then
docker build $NO_CACHE --target ran-base --tag ran-base:latest --file docker/Dockerfile.base.$OSBASE .
if [ ! $? -eq 0 ]; then
exit 1
fi
fi
if $BUILD_RAN_BUILD; then
docker build $NO_CACHE --target ran-build --build-arg BASETAG=$OSBASE-latest --tag ran-build:latest --file docker/Dockerfile.build.$OSBASE .
if [ ! $? -eq 0 ]; then
exit 1
fi
fi
if $BUILD_RAN_DEV; then
docker build $NO_CACHE --target ran-dev --build-arg BASETAG=$OSBASE-latest --tag ran-dev:latest --file docker/Dockerfile.dev.$OSBASE .
if [ ! $? -eq 0 ]; then
exit 1
fi
fi
if $BUILD_RAN_GNB; then
docker build $NO_CACHE --target oai-gnb --build-arg BASETAG=$OSBASE-latest --tag oai-gnb:latest --tag oai-gnb:latest --file docker/Dockerfile.gNB.$OSBASE .
if [ ! $? -eq 0 ]; then
exit 1
fi
fi
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