adoroszlai opened a new pull request, #6927:
URL: https://github.com/apache/ozone/pull/6927

   ## What changes were proposed in this pull request?
   
   Compose file element `version` is 
[obsolete](https://docs.docker.com/compose/compose-file/04-version-and-name/#version-top-level-element-obsolete),
 results in warnings, e.g.:
   
   ```
   level=warning 
msg="/home/runner/work/ozone/ozone/hadoop-ozone/dist/target/ozone-1.5.0-SNAPSHOT/compose/ozone/docker-compose.yaml:
 `version` is obsolete"
   ```
   
   Remove `version` to avoid the warnings.
   
   https://issues.apache.org/jira/browse/HDDS-11138
   
   ## How was this patch tested?
   
   Tried with Docker Compose v1 locally:
   
   ```
   $ cd hadoop-ozone/dist/target/ozone-1.5.0-SNAPSHOT/compose/ozone
   
   $ docker-compose --version               
   docker-compose version 1.29.2
   
   $ docker-compose up -d --scale datanode=3
   Creating network "ozone_default" with the default driver
   Creating ozone_scm_1      ... done
   Creating ozone_recon_1    ... done
   Creating ozone_datanode_1 ... done
   Creating ozone_datanode_2 ... done
   Creating ozone_datanode_3 ... done
   Creating ozone_httpfs_1   ... done
   Creating ozone_om_1       ... done
   Creating ozone_s3g_1      ... done
   
   $ docker-compose exec scm ozone admin safemode wait    
   ...
   SCM is out of safe mode.
   ```
   
   v2 is tested in CI:
   https://github.com/adoroszlai/ozone/actions/runs/9884575792
   
   No warnings seen, e.g.:
   
https://github.com/adoroszlai/ozone/actions/runs/9884575792/job/27301600919#step:5:49


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to