[DiscordArchive] so if i understand right, docker is caching everything in those directories and restores is when the
[DiscordArchive] so if i understand right, docker is caching everything in those directories and restores is when the
Archived author: KJack • Posted: 2023-05-05T19:34:23.954000+00:00
Original source
yeah, not immediately seeing a way around that short of re-cloning from github, but that won't necessarily match what's on the local pc.
Archived author: Honey • Posted: 2023-05-05T20:04:18.122000+00:00
Original source
You can use `git clone --depth 1` to load only the last revision.
You can also use `git clone --depth 1 --recurse-submodules --shallow-submodules` to extend that behavior to submodules.
Archived author: KJack • Posted: 2023-05-05T20:13:34.161000+00:00
Original source
i need to figure out how to do that when the full repo is already downloaded. i'm not sure i can without copying the entire repo into the image first. but maybe that's okay, not sure!
Archived author: mynameismeat • Posted: 2023-05-05T20:17:10.328000+00:00
Original source
I'll have to take a look further into how I'm doing it. Even with a depth of 1, the .git repo is 152MB
```bash
$ git clone https://github.com/azerothcore/azerothcore-wotlk acore-test --depth 1
Cloning into 'acore-test'...
[redacted]
$ du -sh acore-test
837M acore-test
$ du -sh acore-test/.git
152M acore-test/.git
```
Archived author: KJack • Posted: 2023-05-05T20:18:16.576000+00:00
Original source
if the user chooses to get a shallow repo, it's fine - that's what i'll import and use
Archived author: KJack • Posted: 2023-05-05T20:18:27.167000+00:00
Original source
just a lot of bloat for no gain other than that one "revision" string
Archived author: mynameismeat • Posted: 2023-05-05T20:18:56.301000+00:00
Original source
Yeah. One of those things where the build process may be better off not relying on git
Archived author: KJack • Posted: 2023-05-05T20:20:23.973000+00:00
Original source
i've got a stupid hack i'm gonna try
Archived author: mynameismeat • Posted: 2023-05-05T20:26:46.843000+00:00
Original source
can you set the `WITHOUT_GIT` env variable?
<https://github.com/azerothcore/azerothcore-wotlk/blob/master/CMakeLists.txt#L108C8-L110>
Archived author: KJack • Posted: 2023-05-05T20:27:23.311000+00:00
Original source
you'd lose the compiled revision information if we kill it entirely, right? i think the server reports that out on startup.