-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Version always Downloading #105
Comments
I'm not familiar with how Kubernetes works, but are the containers for this job being reused? Or run and then removed immediately? I think I might know what's going on here, but need the above info to be sure |
They are ran and removed and a new one is built everytime
…On Wed, Sep 13, 2023, 12:01 AM Tim Pilius ***@***.***> wrote:
I'm not familiar with how Kubernetes works, but are the containers for
this job being reused? Or run and then removed immediately?
I think I might know what's going on here, but need the above info to be
sure
—
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTL4KXUVJBRYS7MTBEFRNTX2FDZ5ANCNFSM6AAAAAA4VRBQXQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Chris, Apologies for the late reply. The solution to your issue is that BattlenetPrefill has a directory where it stores various configuration, and inside that folder is a file where it keeps track of what is up to date. The solution here will be to properly bind mount that directory. An example is in the docs Docker Setup Guide, but I'll post it here as well:
From the above example, the |
I'm going to close this for now. If the above doesn't solve your issue please feel free to reopen. |
I was able to implement and it works apiVersion: batch/v1
kind: CronJob
metadata:
name: battlenet-lancache-prefill
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: battlenet-lancache-prefill
image: tpill90/battlenet-lancache-prefill:latest
args:
- prefill
- -p
- wow
volumeMounts:
- name: battlenet-pvc
mountPath: /root/.cache/
restartPolicy: OnFailure
volumes:
- name: battlenet-pvc
persistentVolumeClaim:
claimName: battlenet-pvc |
@gen2fish thx for pointing me to @tpill90 I had to mount both |
@gen2fish @bedaes I've given this some more thought and I realize that the reason that this is happening is a holdover behavior that was subsequently changed in SteamPrefill and EpicPrefill. Both of the other prefills track which apps are up to date in their |
Describe the bug
Running the container in Kubernetes as a CronJob, even with back to back executions it still downloads each time.
CronJob Manifest
Container Log for 1st run
2nd Run
172.20.0.12 is the correct IP for my Lancache server
The text was updated successfully, but these errors were encountered: