The skript provided in oder to create and push docker images to the local registry does not work under linux. I propose to use the follwing and integrate it into the README:
export REGISTRY_URL=export REGISTRY_URL=<your preferred prosEO repository, e. g. localhost:5000>
export VERSION=<the prosEO version to install, e. g. 0.8.2>
cd proseo-images/proseo-components
for component in proseo-* ; do
cd $component
COMPONENT_NAME=$(cat Dockerfile | grep FROM | cat Dockerfile | grep FROM | cut -d"/" -f2 | cut -d ":" -f1)
if [[ $COMPONENT_NAME == *"postgres"* ]];
then
TAGGED_NAME=${REGISTRY_URL}/postgres:11-proseo
elif [[ $COMPONENT_NAME == *"pgadmin"* ]];
then
TAGGED_NAME=${REGISTRY_URL}/dpage/pgadmin4:latest-proseo
else
TAGGED_NAME=${REGISTRY_URL}/${COMPONENT_NAME}:${VERSION}-proseo
fi
docker build -t ${TAGGED_NAME} .
docker push ${TAGGED_NAME}
cd ..
done
The skript provided in oder to create and push docker images to the local registry does not work under linux. I propose to use the follwing and integrate it into the README: