anchor.diff:  WORKDIR $python_lib/iotp-orchestrator
   
   RUN \
  -    adduser --comment "${ORCHESTRATOR_USER}" -u ${ORCHESTRATOR_USER_UID} ${ORCHESTRATOR_USER} && \
  +    adduser -u ${ORCHESTRATOR_USER_UID} ${ORCHESTRATOR_USER} && \
  +    # Install security updates
  +    apt-get -y update && \
  +    apt-get -y upgrade && \
       # Install dependencies
  -    yum install -y epel-release && yum update -y curl epel-release && \
  -    yum install -y yum-plugin-remove-with-leaves python3 python3-pip python3-devel openldap-devel python3-virtualenv gcc ssh && \
  -    yum install -y tcping findutils sed && \
  +    apt-get -y install \
  +      curl \
  +      python3 \
  +      python3-dev \
  +      python3-pip \
  +      openssl \
  +      libssl-dev \
  +      libldap2-dev \
  +      libsasl2-dev \
  +      git \
  +      gcc \
  +      sed \
  +      ldap-utils \
  +      findutils && \
  +      # Install from source
       mkdir -p $python_lib/iotp-orchestrator && \
       mkdir -p $python_lib/iotp-orchestrator/bin && \
  -    cp -rp /opt/sworchestrator/src/* $python_lib/iotp-orchestrator && cp -p /opt/sworchestrator/requirements.txt $python_lib/iotp-orchestrator && \
  -    cp -rp /opt/sworchestrator/bin $python_lib/iotp-orchestrator && \
  +    cp -r /opt/sworchestrator/src/* $python_lib/iotp-orchestrator && \
  +    cp -p /opt/sworchestrator/requirements.txt $python_lib/iotp-orchestrator && \
  +    cp -r /opt/sworchestrator/bin $python_lib/iotp-orchestrator && \
       chmod 755 $python_lib/iotp-orchestrator/bin/orchestrator-entrypoint.sh && \
       chown -R ${ORCHESTRATOR_USER}:${ORCHESTRATOR_USER} $python_lib/iotp-orchestrator && \
       pip3 install -r $python_lib/iotp-orchestrator/requirements.txt && \
  
positive.code: FROM centos:7.9.2009
  
  MAINTAINER Alvaro Vega <alvaro.vegagarcia@telefonica.com>
  
  ENV ORCHESTRATOR_USER orchestrator
  # By default all linux users non root, has a UID above 1000, so it's taken 10001 which would never end up allocated automatically.
  ENV ORCHESTRATOR_USER_UID 10001
  
  ENV ORCHESTRATOR_VERSION 4.1.0
  
  ENV python_lib /var/env-orchestrator/lib/python3.6/site-packages
  ENV DJANGO_SETTINGS_MODULE settings
  ENV PYTHONPATH "${PYTHONPATH}:/opt/orchestrator"
  
negative.code:     sed -i 's/ORC_version/'$ORCHESTRATOR_VERSION'/g' /opt/orchestrator/settings/common.py && \
      sed -i 's/\${project.version}/'$ORCHESTRATOR_VERSION'/g' /opt/orchestrator/orchestrator/core/banner.txt && \
      echo "INFO: Cleaning unused software..." && \
      apt-get clean && \
      #if [ ${CLEAN_DEV_TOOLS} -eq 0 ] ; then exit 0 ; fi && \
      # remove the same packages we installed at the beginning to build Orch
      # apt-get -y remove --purge \
      #   curl \
      #   git \
      #   gcc \
      # apt-get -y autoremove --purge && \
      # Don't need old log files inside docker images
      rm -f /var/log/*log
  
  # Define the entry point
  ENTRYPOINT ["/opt/orchestrator/bin/orchestrator-entrypoint.sh"]
  