dlr-eoc / prosEO

prosEO – A Processing System for Earth Observation Data
GNU General Public License v3.0
14 stars 1 forks source link

Docker-image creation script proposed in single-node-deployment README fails under Linux #167

Closed peterfriedl closed 7 months ago

peterfriedl commented 2 years ago

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
tangobravo62 commented 7 months ago

Issue fixed and closed.