anchor.diff:      ( service jboss-service start || \
         service jboss-service start || \
         service jboss-service start ) && \
  +    sleep 20 && \
       JBOSS_CONFIGURATION="$JBOSS_HOME/standalone/configuration" && \
       cp ./utils/utils.commons/src/main/resources/security-config.ini "$JBOSS_CONFIGURATION" && \
       cp ./utils/utils.commons/src/main/resources/properties/openiot.properties "$JBOSS_CONFIGURATION" && \
  
positive.code: RUN mkdir /usr/local/virtuoso-opensource/var/log && \
      until service virtuoso-service start; do echo "Failed to start... Trying again."; done && \
      sleep 15 && \
      bash /tmp/virtuoso_config.sh && \
      rm /tmp/virtuoso_config.sh
  
  # Expõe as portas do Virtuoso
  
negative.code:     cd $OPENIOT_HOME/modules/sdum/sdum.core/ && \
      mvn -X jboss-as:deploy && \
      cd $OPENIOT_HOME/ui/ui.requestDefinition/ && \
      mvn -X clean package jboss-as:deploy && \
      cd $OPENIOT_HOME/ui/ui.requestPresentation/ && \
      mvn -X clean package jboss-as:deploy && \
      cd $OPENIOT_HOME/ui/ui.schemaeditor/ && \
      mvn -X clean package jboss-as:deploy && \
      cd $OPENIOT_HOME/ui/ide/ide.core/ && \
      mvn -X clean package jboss-as:deploy && \
      rm -r /tmp/openiot
  
  # Passo Final
  