codex-storage / cs-codex-dist-tests

Distributed System Tests for Nim-Codex
3 stars 3 forks source link

Use multi-stage builds for Rewarder #101

Closed veaceslavdoina closed 5 months ago

veaceslavdoina commented 5 months ago

@benbierens, I did some experiments with the multi-stage builds for Rewarder based on the Tutorial: Containerize a .NET app and run a manual build.

Previous

docker pull codexstorage/codex-rewarderbot:sha-b25c747
time docker run --rm codexstorage/codex-rewarderbot:sha-b25c747

real    0m16.992s

New

docker pull codexstorage/codex-rewarderbot:sha-0a8083d
time docker run --rm codexstorage/codex-rewarderbot:sha-0a8083d

real    0m0.798s

Can you please check if that works as expected?

benbierens commented 5 months ago

This works great. The container starts much faster now. Can you apply the same approach to the discord bot container?

veaceslavdoina commented 5 months ago

Same changes for BiblioTech

Previous

docker pull codexstorage/codex-discordbot:sha-8bc63c1
time docker run --rm codexstorage/codex-discordbot:sha-8bc63c1

real    0m23.683s

New

docker pull codexstorage/codex-discordbot:sha-a58c9ab
time docker run --rm codexstorage/codex-discordbot:sha-a58c9ab

real    0m0.787s