Attila Doroszlai created HDDS-11809:
---------------------------------------

             Summary: Remove unnecessary files from ozone Docker image
                 Key: HDDS-11809
                 URL: https://issues.apache.org/jira/browse/HDDS-11809
             Project: Apache Ozone
          Issue Type: Task
          Components: docker
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


{{apache/ozone}} Docker image comes with few helper files on top of the 
contents of Ozone binary tarball:

- {{log4j.properties}} to write log to {{stdout}} so that logs can be checked 
by {{docker log}} command.  However, Ozone's logging config already does that 
(which we rely on for {{ozone-runner}}-based tests.  So the override log config 
is unnecessary.
- {{ozone-site.xml}} and {{start-ozone-all.sh}} to allow running all Ozone 
services in a single container using a simple {{docker run ...}} command.  I 
think this mode is no longer useful, Docker Compose is widespread (e.g. it's 
part of Docker Desktop).
- {{docker-compose.yaml}} and {{docker-config}} to allow running Ozone in 
Docker Compose after copying these files from the image to the host.  However, 
any changes in these files requires building and publishing new image(s), most 
of which is unchanged (since Ozone release artifacts are immutable).  I think 
it would be better to omit these files, and provide them as examples, referring 
users to the GitHub repo and/or the Ozone website.

Removing these from the image eliminates the need for downloading and running 
Rat before building the image in {{build.sh}} (which is not used in automated 
builds anyway).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to