Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add awareness/support for Containerfiles #3 #4

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

DovOps
Copy link
Contributor

@DovOps DovOps commented Jul 24, 2024

THIS SOFTWARE IS CONTRIBUTED SUBJECT TO THE TERMS OF THE APACHE LICENSE V.2.0. YOU MAY OBTAIN A COPY OF THE LICENSE AT https://www.apache.org/licenses/LICENSE-2.0.

THIS SOFTWARE IS LICENSED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTY OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THIS SOFTWARE MAY BE REDISTRIBUTED TO OTHERS ONLY BY EFFECTIVELY USING THIS OR ANOTHER EQUIVALENT DISCLAIMER IN ADDITION TO ANY OTHER REQUIRED LICENSE TERMS.

What's changed?

Added support for Containerfile to go alongside Dockerfiles

What's your motivation?

Some organizations use OCI Container tooling such as Podman/buildah which consumes OCI Containerfiles instead of Dockerfiles, and whatever manipulation / analysis of Dockerfiles takes place in the OpenRewrite recipe ecosystem would also be useful to perform on Containerfiles.

Any additional context

Simple tests were added to cover the new filename.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@timtebeek timtebeek added the enhancement New feature or request label Jul 24, 2024
@timtebeek timtebeek self-requested a review July 24, 2024 09:55
@timtebeek timtebeek linked an issue Jul 24, 2024 that may be closed by this pull request
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see! I've added some minor polish to minimize the code we'll have to maintain.

You might also want to double check your git config, as your commit seemed to have been attributed to Jonathan instead.

I'll merge this as is such that it becomes available for you to use there.

@timtebeek timtebeek merged commit cca5605 into openrewrite:main Jul 24, 2024
2 checks passed
@DovOps
Copy link
Contributor Author

DovOps commented Jul 24, 2024

I noticed that and was baffled. This was a simple GitHub code space in a personal branch. A little strange that it attributed to change to Jonathan, but I will double check again what caused that. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add awareness/support for Containerfiles
3 participants