This message was deleted.
# general
s
This message was deleted.
b
That code is from several months ago but it worked.
c
oh nice! What language is that example? It doesn’t look like go to me - because of the
List<string>
and go doesn’t have generics
b
C# but the same should apply I think.
c
does this require a minimum docker version? I notice you’re using
DOCKER_BUILDKIT
and it’s inline cache
also, I think the
CacheFrom
for go is broken - is the CacheFrom for your example critical for caching to work?
b
ah, I see, that would be a problem. The CacheFrom in the code I posted is basically a list of strings that are the stages in to cache in the Dockerfile. It looks like 18.09 or higher.
c
ah yup, unfortunately CacheFrom is totally broke in the go implementation 😞
does the buildkit inline cache require the cache-from arg or do they operate independently of each other?
b
I believe the inline cache env var is required for cache from to work for remote caching, but I'd have to check that.
c
got it, yeah I’m wondering if I can just set
DOCKER_BUILDKIT
and use
BUILDKIT_INLINE_CACHE
and skip using
CacheFrom
entirely.
222 Views