Questions tagged [docker-buildkit]

142 questions
0
votes
1 answer

Docker layer hashes are different between identical fully cached builds

I am seeing different checksums calculated for image layers that should be identical. This is my dockerfile: # syntax=docker/dockerfile:1.4 ARG ONEAPI_VERSION=2022.1.2 FROM intel/oneapi-hpckit:${ONEAPI_VERSION}-devel-ubuntu18.04 AS…
Lisanna
  • 133
  • 1
  • 4
0
votes
1 answer

How to extract coverage report in multistage build?

I want to extract the coverage report while building a docker image in a multistage build. Before I was executing the tests via image.inside using the Jenkins Docker plugin but now I am executing the tests using the following command where I could…
0
votes
1 answer

Docker Buildkit SSH/Github woes

I'm trying to write a Dockerfile that pulls a private repository from github. The problem is that I can't get Docker buildkit to use my SSH key properly. Even using the precise instructions and example code from their website does not work. Here is…
Zorgoth
  • 499
  • 3
  • 9
0
votes
1 answer

docker buildx hangs after pulling the cache

I have one docker file for amd and another for arm. Let's call them my-priv-registry/amd and my-priv-registry/arm. I have a CI running which compiles the images when a modification is done. The amd.dockerfile and the arm.dockerfile are the same FROM…
afvmil
  • 362
  • 3
  • 11
0
votes
1 answer

Build all containers before pushing to registry using Buildkit

I've the following Dockerfile: FROM php:7.4 as base RUN apt-get install -y libzip-dev && \ docker-php-ext-install zip # install some other things... FROM base as intermediate COPY upgrade.sh /usr/local/bin FROM base as final COPY…
0
votes
0 answers

In a multistage dockerfile, how can I detect which images need rebuilding?

We have a single stage dockerfile building a single image. Due to many logical considerations, we want to separate this build to many different stages (e.g. production, development, testing etc..). We plan to use BuildKit enabled for all its…
shayst
  • 267
  • 4
  • 14
0
votes
0 answers

Deploying a .net Application to Kubernetes via Docker

I'm attempting to deploy a .net Application to Digital Ocean Kubernetes, put to no luck. When creating a simple web.yml deployment I am seeing the status log return ERROR and when running logs on the pod I see the…
Micheal J. Roberts
  • 3,735
  • 4
  • 37
  • 76
0
votes
1 answer

Run aarch64 Docker image in GitHub x86 container workflow

I'm testing a GitHub workflow that checks if the code compiles on arm64, using a Linux/aarch64 Docker container for the build. I'm aware GitHub containers are x86 only, however I'd like to know if it is possible to execute multi-arch images in…
Don Stewart
  • 137,316
  • 36
  • 365
  • 468
0
votes
0 answers

DOCKER_BUILDKIT environment variable expects boolean value

The result of the make build command in shell I try to build the docker images on PyCharm Windows, running the make command in powershell and trying to execute DOCKER_BUILDKIT i got results: DOCKER_BUILDKIT environment variable expects boolean…
Zechariah Lvov
  • 135
  • 1
  • 2
  • 10
0
votes
1 answer

skaffold - the custom script didn't produce an image with tag

docker custom docker/buildx.sh docker buildx create --name awear-builder --platform $platforms --driver-opt=network=host docker buildx build --builder awear-builder --tag $IMAGE --platform linux/arm64 --push -f ./docker/Dockerfile…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
0
votes
1 answer

Works if I execute it manually on the agent but it doesn't if Jenkins execute it as a part of the pipeline

I'm trying to build a docker image as a part of my project's pipeline and pass some credentials as secrets. The compromised line is DOCKER_BUILDKIT=1 docker build --secret id=ARTIFACTORY_USERNAME --secret id=ARTIFACTORY_PASSWORD -f "$DOCKERFILE"…
0
votes
0 answers

Using envsubst with Dockerfile via Process Substitution breaks the build

I'm running into an issue whenever I'm trying to build my Docker image using the wrapper script that I've put in place to allow for in place ENV substitution with host environment variables. Whenever I exceute my script I'm getting the error: [+]…
0
votes
0 answers

How to replace hardcoded value in pipeline.yaml which is running under buildkite tool

I have a use case where I need to run the same pipeline but with a different environment variable, Like dev/qa/stage/prod. I tried to use an environment variable to make the changes at the run time but not succeeded pipeline.yaml steps: - label:…
gaurav agnihotri
  • 259
  • 1
  • 5
  • 14
0
votes
1 answer

How to get substantial caching with multistage Dockerfile

Currently I have the following Dockerfile: FROM debian:10 as builder RUN sleep 10 COPY input input # worlds most trivial build pipeline RUN cat input > artifact FROM debian:10 COPY --from=builder artifact artifact RUN cat artifact COPY input2…
hbogert
  • 4,198
  • 5
  • 24
  • 38
0
votes
0 answers

Remove/Reduce size of docker layers used for installing a software

Can somebody help me? Sorry for the long question but I'm trying to describe my issue in as much detail as possible. I'm trying to have a software that installed in my docker image. In the below image, at number 2, you can see I COPY ace/ /tmp/ - …
1 2 3
9
10