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

Build logs should go in temporary directory #409

Open
1 of 3 tasks
wyardley opened this issue Feb 28, 2025 · 0 comments
Open
1 of 3 tasks

Build logs should go in temporary directory #409

wyardley opened this issue Feb 28, 2025 · 0 comments

Comments

@wyardley
Copy link

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

Is it possible to configure the defaults to put debug logging etc. in a different directory from the GitHub workspace?

I end up with a buildkitd.toml and buildkitd.log if I do a Docker build with these files not .dockerignored and do a top level COPY ./ ./. While this is easy to not do,

Expected behaviour

No buildkit config / log files in a built image.

Actual behaviour

buildkitd.log and buildkitd.toml are present.

Repository URL

No response

Workflow run URL

No response

YAML workflow

steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Docker tags and metadata
        id: meta
        uses: docker/metadata-action@v5
        env:
          DOCKER_METADATA_SHORT_SHA_LENGTH: 9
        with:
          images: ${{ env.IMAGE }}
          labels: |
            org.opencontainers.image.description=Blah blah
            org.opencontainers.image.licenses=UNLICENSED
          tags: |
            type=sha,prefix=
            type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
      # [...]
      - name: Setup Docker Buildx
        uses: docker/setup-buildx-action@v3

      - name: Build and Push image
        uses: docker/build-push-action@v1
        with:
          context: .
          file: ./Dockerfile
          push: true
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}

Workflow logs

No response

BuildKit logs


Additional info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant