1

docker file update through openrewrite if possible.

I am willing to to update Java version in docker file through OpenRewrite.

**FROM amazoncorretto:17**
USER root
RUN yum update -y
RUN yum upgrade -y
RUN yum update -
------
-----

1 Answers1

1

I think that plain text recipes is the best we can do here, until we get a dedicated parser for Docker. You could try if the find and replace one fits your use case: https://docs.openrewrite.org/recipes/text/findandreplace

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 20 '23 at 07:10