Git Product home page Git Product logo

bug-harness-kaniko's Introduction

Minimal Test Case for Harness-Kaniko Dockerignore Bug

This repository contains a minimal test case for a bug found in the Harness implementation of the Kaniko builder. The bug manifests when parsing .dockerignore files.

Bug Description

The bug occurs when a .dockerignore file is configured to ignore all files by default and only includes certain files through exceptions. If a filename in the exceptions list contains a + symbol, the file is not correctly unignored and remains excluded from the build context.

Reproducing the Bug

  1. Run the following command to build the Docker image using the Harness-Kaniko builder:

    make build

    Notice that the file a+b.patch is not copied into the Docker image.

  2. Run the following command to build the Docker image using the upstream Kaniko project:

    make build_google

    In this case, the file a+b.patch is correctly copied into the Docker image.

This discrepancy between the two builders demonstrates the bug in the Harness-Kaniko builder's handling of .dockerignore files.

bug-harness-kaniko's People

Contributors

r4vi avatar

Watchers

 avatar

Forkers

pedrokuhn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.