Skip to content

Instantly share code, notes, and snippets.

View TomChv's full-sized avatar

Vasek - Tom C TomChv

View GitHub Profile
@TomChv
TomChv / Diff.md
Created February 24, 2022 19:37
Buildkit cache issue discovery

Using failure binary

➜ ls
go.mod  go.sum  main.go

➜  test docker container stop dagger-buildkitd && docker container rm dagger-buildkitd && docker volume rm dagger-buildkitd
dagger-buildkitd
dagger-buildkitd
dagger-buildkitd
@TomChv
TomChv / go.mod
Created February 24, 2022 16:28
Buildkit local cache issue v2
module buildkit-repro
go 1.17
require (
github.com/moby/buildkit v0.10.0-rc1.0.20220224103313-c393d5c66d11 // Use latest version on repository
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
)
require (
@TomChv
TomChv / Repro-case.md
Last active February 4, 2022 16:08
Buildkit local cache issue

Repro case

# See file
ls
go.mod  go.sum  main.go

# Start buildkit daemon
docker run --net=host -d --restart always -v dagger-buildkitd:/var/lib/buildkit --name dagger-buildkitd --privileged moby/buildkit:v0.9.3
d0368480d7f2ee03d55ffae5474eeee7a8c7a44453fa978f90825137d9ca1261
@TomChv
TomChv / install.yaml
Created September 9, 2021 10:25
ArgoCD install inscure
# This is an auto-generated file. DO NOT EDIT
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app.kubernetes.io/name: applications.argoproj.io
app.kubernetes.io/part-of: argocd
name: applications.argoproj.io
spec:
group: argoproj.io
@TomChv
TomChv / main.go
Last active August 24, 2021 14:02
LLB Fetch private git
package main
import (
"context"
"fmt"
"os"
bk "github.com/moby/buildkit/client"
_ "github.com/moby/buildkit/client/connhelper/dockercontainer"
"github.com/moby/buildkit/client/llb"
@TomChv
TomChv / release.yaml
Created August 12, 2021 15:19
Github Action to release your project on Github
name: Release
on:
workflow_dispatch:
inputs:
name:
description: Release name (tags will prefix it)
required: true
tags:
description: Version Tags