Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Duplicate path in link when downloading context from AzureBlob #3482

@arxsab

Description

@arxsab

Actual behavior

Duplicate path in link when downloading context from AzureBlob

context - https://myaccount.blob.core.windows.net/container/path/to/context.tar.gz

The link from which Kaniko is trying to download the context - https://myaccount.blob.core.windows.net/container/path/to/context.tar.gz/container/path/to/context.tar.gz

last correct working version of Kaniko 1.19.2...

DEBU[0000] Getting source context from 
https://myaccount.blob.core.windows.net/container/path/to/context.tar.gz
DEBU[0000] BaseDir /kaniko/buildcontext for file /kaniko/buildcontext/context.tar.gz does not exist. Creating.
Error: error resolving source context: HEAD https://myaccount.blob.core.windows.net/container/path/to/context.tar.gz/container/path/to/context.tar.gz
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified blob does not exist.
ERROR CODE: BlobNotFound
--------------------------------------------------------------------------------
Response contained no body
--------------------------------------------------------------------------------

Expected behavior

Correct path in a download link

To Reproduce
Steps to reproduce the behavior:

  1. Use cr.io/kaniko-project/executor:v1.20.0 and higher with context from AzureBlob

Additional Information

  • Dockerfile
    Please provide either the Dockerfile you're trying to build or one that can reproduce this error.

    FROM myacr.azurecr.io/app:dev
    COPY . /tmp/app
    ENV APPLICATION_SOURCE_BASE_PATH=/tmp/app
    
  • Build Context
    Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)

     COPY . /tmp/app - all files on my context.tar.gz
    
  • Kaniko Image (fully qualified with digest)

    Digest: sha256:9e69fd4330ec887829c780f5126dd80edc663df6def362cd22e79bcdf00ac53f
    gcr.io/kaniko-project/executor:v1.23.2
    
Description Yes/No
Please check if this a new feature you are proposing
  • - [no]
Please check if the build works in docker but not in kaniko
  • - [yes]
Please check if this error is seen when you use --cache flag
  • - [yes]
Please check if your dockerfile is a multistage dockerfile
  • - [no]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions