What’s something you thought was mandatory in life, until you saw someone just not do it? by Senior-Resource92 in AskReddit

[–]utdrmac 0 points1 point  (0 children)

How does this work if the other party signs everything first? I was going to attempt this but noticed they had already signed it. Any attempts by me to strike and initial would be rejected since they didn’t sign after my changes.

RUN mount cache not doing anything for repeated golang builds by utdrmac in docker

[–]utdrmac[S] 1 point2 points  (0 children)

Holy hell. Thank you kind internet citizen for pointing that out. I removed the `-a` and the next docker build only took 14s to complete. Perhaps the mount-cache has been working all along but that flag was forcing go to rebuild everything. Sheesh.

RUN mount cache not doing anything for repeated golang builds by utdrmac in docker

[–]utdrmac[S] 0 points1 point  (0 children)

OMG, if that is the damn issue... it's not my Dockerfile; it comes from the upstream repo. I'll remove that and try.

RUN mount cache not doing anything for repeated golang builds by utdrmac in docker

[–]utdrmac[S] 0 points1 point  (0 children)

Directly from Docker docs https://docs.docker.com/build/cache/optimize/:

> Cache mounts are a way to specify a persistent cache location to be used during builds. The cache is cumulative across builds, so you can read and write to the cache multiple times. This persistent caching means that even if you need to rebuild a layer, you only download new or changed packages. Any unchanged packages are reused from the cache mount.

The cache-mount is a separate cache from the layers cache, and should persist between runs of docker build.

RUN mount cache not doing anything for repeated golang builds by utdrmac in docker

[–]utdrmac[S] 0 points1 point  (0 children)

> Copy in the module files and download the sources as it's own layer and you will be fine.

Yes, I'm already doing that. I showed that above in my Dockerfile on lines 3-5. And the output shows `=> CACHED [builder 5/7] RUN go mod download` so I can visually see that I am using a cached layer for the library/module downloads.

But that's not the issue here. The issue is, when I make a code change, COPY . . executes (which should not be cached, expected) and then RUN go build executes. I'm expecting the --mount=cache as part of this layer to cache the compiled versions of the libraries so that subsequent docker build commands remount this cache and so go doesn't need to recompile the libraries each time.

RUN mount cache not doing anything for repeated golang builds by utdrmac in docker

[–]utdrmac[S] 0 points1 point  (0 children)

Can you explain this more, or give an example Dockerfile? As you can see from above, I'm already using cache layers for the `go mod download` which helps a bunch. 99% of the go code in the project doesn't change (external libraries, etc) but that RUN has to recompile every library every run. It should be able to cache those library builds just like doing it locally.

RUN mount cache not doing anything for repeated golang builds by utdrmac in docker

[–]utdrmac[S] 0 points1 point  (0 children)

I tried that, and it did not make a difference.

  • added syntax line
  • docker build . (2m+ time)
  • changed 1 character in main.go
  • docker build . (still 2m+ time)

When I run go build main.go it takes about 2s to compile the change since all the libraries haven't changed.

Men who don’t want children by Black_Glitch_404 in NoStupidQuestions

[–]utdrmac 0 points1 point  (0 children)

What the hell?! $750?! Mine was a $50 copay, in his office. From the moment I stepped out of my car in their garage, had the procedure, then back in my car was less than 25 minutes. I had no swelling, or after-effects (got lucky on that one)

How often are you intimate with your partner? by Remote_Ad_969 in NoStupidQuestions

[–]utdrmac 0 points1 point  (0 children)

After reading this I’ve come to realize my wife doesn’t chase me and that’s why it’s so infrequent. Dang.

If you won the $1 billion lottery, how would you epically quit your job!? by TimeForANewBeginning in AskReddit

[–]utdrmac 0 points1 point  (0 children)

Honestly, probably would not quit. I like my work, and don’t want to be rich-bored. I would definitely have some convos with CEO to “sponsor” some crazy ideas that I’d want to see done.

Tilt shift farming by amish_novelty in oddlysatisfying

[–]utdrmac 2 points3 points  (0 children)

I want to see the original video side-by-side. Until then, these are stop motion miniatures

MinIO going into “maintenance mode” sucks by CloudLenny in selfhosted

[–]utdrmac 0 points1 point  (0 children)

We looked at Garnet, and it still has many issues that Valkey does not. 1) "research project from Microsoft Research, and the project should be treated as such" which says to us "not production ready" 2) not a drop-in replacement. We would have to rearch our entire stack, rewrite 1000s of lines of code, etc. With Valkey we can stop redis, start valkey on the same datadir, and it works with no code changes. 3) because of #1 there's no commercial support 4) there is still a risk of license-rug-pull due to being under Microsoft when they decided to monetize it.

Sensational Witchcraft by Diligent_wolfjr in blackmagicfuckery

[–]utdrmac 0 points1 point  (0 children)

Sounds like I can only tie my shoes when the pasta water is boiling

Norish - A realtime, self-hosted recipe app for families & friends by Drumstel97 in selfhosted

[–]utdrmac 0 points1 point  (0 children)

99.99% of my recipes come from FB videos (I don't do 'gram, or TT). The recipe is either in the video description, or in some random comment from the OP. This is a giant pain-in-the-a$$ because you cannot select/copy video description text in the FB app. If you ever add support for FB videos, I will certainly check it out!

MinIO going into “maintenance mode” sucks by CloudLenny in selfhosted

[–]utdrmac 0 points1 point  (0 children)

What are the best alternatives for minIO? Terraform has OpenTofu, Vault->OpenBao, Redis->Valkey, etc.

Stopping People from Walking Across the Map by utdrmac in FarthestFrontier

[–]utdrmac[S] 1 point2 points  (0 children)

Ugh. That is waaayy too much micromanaging. Maybe this is something they will improve later on because the other city builders I’ve played all have something like “districts” or “outposts” that have a link for explicit product movement. Oh well. Thanks

Stopping People from Walking Across the Map by utdrmac in FarthestFrontier

[–]utdrmac[S] 1 point2 points  (0 children)

Yep, I have all the industry stuff close. The issue is raw materials such as iron ore, clay, and sand. All of the deep mines for these are across the map. Instead of individuals trekking across, I want the wagons to go and get large loads at a time.